From: <che...@us...> - 2008-11-06 17:35:41
|
Revision: 2295 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=2295&view=rev Author: chef_koch Date: 2008-11-06 17:35:18 +0000 (Thu, 06 Nov 2008) Log Message: ----------- added: new configTesterTool changed: moved ISetupForm interface to it's own ConfigConnector class Modified Paths: -------------- trunk/plugins/FritzBox/FritzBox/FritzBox.cs trunk/plugins/FritzBox/FritzBox/FritzBox.csproj trunk/plugins/FritzBox/FritzBox.sln Added Paths: ----------- trunk/plugins/FritzBox/FritzBox/ConfigConnector.cs trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.Designer.cs trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.cs trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.resx trunk/plugins/FritzBox/Tools/ trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/ trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/FritzBoxConfigTester.csproj trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/Program.cs trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/Properties/ trunk/plugins/FritzBox/Tools/FritzBoxConfigTester/Properties/AssemblyInfo.cs Removed Paths: ------------- trunk/plugins/FritzBox/FritzBox/FritzBoxSetupFrom.Designer.cs trunk/plugins/FritzBox/FritzBox/FritzBoxSetupFrom.cs trunk/plugins/FritzBox/FritzBox/FritzBoxSetupFrom.resx Added: trunk/plugins/FritzBox/FritzBox/ConfigConnector.cs =================================================================== --- trunk/plugins/FritzBox/FritzBox/ConfigConnector.cs (rev 0) +++ trunk/plugins/FritzBox/FritzBox/ConfigConnector.cs 2008-11-06 17:35:18 UTC (rev 2295) @@ -0,0 +1,75 @@ +using System; + +using MediaPortal.GUI.Library; + +namespace FritzBox +{ + public class ConfigConnector : ISetupForm + { + //private static Logger logger = LogManager.GetCurrentClassLogger(); + + #region ISetupForm Members + + public string PluginName() + { + return "FRITZ!Box CallMonitor"; + } + + public string Author() + { + return "chefkoch"; + } + + public string Description() + { + return "Displays FRITZ!Box calling information."; + } + + public void ShowPlugin() + { + try + { + //RetroGamingCore.Initialize(); + + FritzBoxConfig config = new FritzBoxConfig(); + config.ShowDialog(); + + //RetroGamingCore.Shutdown(); + } + catch (Exception e) + { + //logger.ErrorException("Unexpected error from the Configuration Screen!", e); + } + } + + public bool CanEnable() + { + return true; + } + + public int GetWindowId() + { + return -1; + } + + public bool DefaultEnabled() + { + return false; + } + + public bool HasSetup() + { + return true; + } + + public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) + { + strButtonText = null; + strButtonImage = null; + strButtonImageFocus = null; + strPictureImage = null; + return false; + } + #endregion + } +} Modified: trunk/plugins/FritzBox/FritzBox/FritzBox.cs =================================================================== --- trunk/plugins/FritzBox/FritzBox/FritzBox.cs 2008-11-06 17:08:02 UTC (rev 2294) +++ trunk/plugins/FritzBox/FritzBox/FritzBox.cs 2008-11-06 17:35:18 UTC (rev 2295) @@ -42,7 +42,7 @@ namespace FritzBox { [PluginIcons("FritzBox.FritzBox.png", "FritzBox.FritzBoxDisabled.png")] - public class FritzBox : ISetupForm, IPlugin + public class FritzBox : IPlugin { public class Settings { @@ -493,60 +493,6 @@ #endregion - #region ISetupForm Interface - - public bool CanEnable() - { - return true; - } - - public string Description() - { - return "Displays FRITZ!Box calling information."; - } - - public bool DefaultEnabled() - { - return false; - } - - public int GetWindowId() - { - return -1; - } - - public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) - { - strButtonText = null; - strButtonImage = null; - strButtonImageFocus = null; - strPictureImage = null; - return false; - } - - public string Author() - { - return "chefkoch"; - } - - public string PluginName() - { - return "FRITZ!Box CallMonitor"; - } - - public bool HasSetup() - { - return true; - } - - public void ShowPlugin() - { - Form setup = new FritzBoxSetupFrom(); - setup.ShowDialog(); - } - #endregion - - #endregion } } \ No newline at end of file Modified: trunk/plugins/FritzBox/FritzBox/FritzBox.csproj =================================================================== --- trunk/plugins/FritzBox/FritzBox/FritzBox.csproj 2008-11-06 17:08:02 UTC (rev 2294) +++ trunk/plugins/FritzBox/FritzBox/FritzBox.csproj 2008-11-06 17:35:18 UTC (rev 2295) @@ -2,7 +2,7 @@ <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProductVersion>8.0.50727</ProductVersion> + <ProductVersion>9.0.21022</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{7A458560-A537-429E-A016-1A4513CB586F}</ProjectGuid> <OutputType>Library</OutputType> @@ -42,15 +42,16 @@ <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> + <Compile Include="ConfigConnector.cs" /> <Compile Include="FritzBoxClient.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Caller.cs" /> <Compile Include="CallAction.cs" /> - <Compile Include="FritzBoxSetupFrom.cs"> + <Compile Include="FritzBoxConfig.cs"> <SubType>Form</SubType> </Compile> - <Compile Include="FritzBoxSetupFrom.Designer.cs"> - <DependentUpon>FritzBoxSetupFrom.cs</DependentUpon> + <Compile Include="FritzBoxConfig.Designer.cs"> + <DependentUpon>FritzBoxConfig.cs</DependentUpon> </Compile> <Compile Include="FritzBox.cs" /> <Compile Include="PhoneBook.cs" /> @@ -68,9 +69,9 @@ </EmbeddedResource> </ItemGroup> <ItemGroup> - <EmbeddedResource Include="FritzBoxSetupFrom.resx"> + <EmbeddedResource Include="FritzBoxConfig.resx"> <SubType>Designer</SubType> - <DependentUpon>FritzBoxSetupFrom.cs</DependentUpon> + <DependentUpon>FritzBoxConfig.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="FritzBoxDisabled.png" /> <EmbeddedResource Include="FritzBox.png" /> Copied: trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.Designer.cs (from rev 2285, trunk/plugins/FritzBox/FritzBox/FritzBoxSetupFrom.Designer.cs) =================================================================== --- trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.Designer.cs (rev 0) +++ trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.Designer.cs 2008-11-06 17:35:18 UTC (rev 2295) @@ -0,0 +1,869 @@ +namespace FritzBox +{ + partial class FritzBoxConfig + { + /// <summary> + /// Erforderliche Designervariable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Verwendete Ressourcen bereinigen. + /// </summary> + /// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// <summary> + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// </summary> + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FritzBoxConfig)); + this.tabControlFritzBoxSettings = new MediaPortal.UserInterface.Controls.MPTabControl(); + this.tabGeneral = new System.Windows.Forms.TabPage(); + this.checkBoxExtensiveLogging = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.mpGroupBox1 = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.numericUpDownPort = new System.Windows.Forms.NumericUpDown(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.buttonTest = new MediaPortal.UserInterface.Controls.MPButton(); + this.textBoxAddress = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.labelPort = new MediaPortal.UserInterface.Controls.MPLabel(); + this.labelAddress = new MediaPortal.UserInterface.Controls.MPLabel(); + this.labelHelp = new MediaPortal.UserInterface.Controls.MPLabel(); + this.tabIncoming = new System.Windows.Forms.TabPage(); + this.groupBoxPhonebook = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.checkBoxSaveUnknownCaller = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.checkBoxShowUnknownCaller = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.checkBoxUsePhonebook = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.groupBoxNotify = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.checkBoxCloseOnConnectionClosed = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.lblMaxNotifies = new MediaPortal.UserInterface.Controls.MPLabel(); + this.numericUpDownMaxNotifies = new MediaPortal.UserInterface.Controls.MPNumericUpDown(); + this.checkBoxShowMsnOnHeading = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.buttonMSNsRemove = new MediaPortal.UserInterface.Controls.MPButton(); + this.checkBoxFilterMSNs = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.buttonMSNsAdd = new MediaPortal.UserInterface.Controls.MPButton(); + this.comboBoxMSNs = new MediaPortal.UserInterface.Controls.MPComboBox(); + this.numericUpDownTimeout = new MediaPortal.UserInterface.Controls.MPNumericUpDown(); + this.checkBoxCloseOnTimout = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.groupBoxMedia = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.checkBoxResumeMedia = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.checkBoxStopMedia = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.tabPhonebook = new System.Windows.Forms.TabPage(); + this.pictureBoxCaller = new System.Windows.Forms.PictureBox(); + this.buttonCallerChange = new MediaPortal.UserInterface.Controls.MPButton(); + this.checkBoxCallerShow = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.textBoxCallerName = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.textBoxCallerId = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.buttonCallerRemove = new MediaPortal.UserInterface.Controls.MPButton(); + this.dataGridView = new System.Windows.Forms.DataGridView(); + this.colCallerId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colShow = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.labelCallerId = new MediaPortal.UserInterface.Controls.MPLabel(); + this.labelCallerName = new MediaPortal.UserInterface.Controls.MPLabel(); + this.labelVersion = new MediaPortal.UserInterface.Controls.MPLabel(); + this.buttonSave = new MediaPortal.UserInterface.Controls.MPButton(); + this.buttonCancel = new MediaPortal.UserInterface.Controls.MPButton(); + this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); + this.buttonClearAll = new MediaPortal.UserInterface.Controls.MPButton(); + this.mpImportFBMonitor = new MediaPortal.UserInterface.Controls.MPButton(); + this.textBoxSuffixWork = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.textBoxSuffixHome = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.textBoxSuffixMobile = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.groupBoxImport = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.labelSuffixHome = new MediaPortal.UserInterface.Controls.MPLabel(); + this.mpLabel2 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.mpLabel3 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.tabControlFritzBoxSettings.SuspendLayout(); + this.tabGeneral.SuspendLayout(); + this.mpGroupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPort)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.tabIncoming.SuspendLayout(); + this.groupBoxPhonebook.SuspendLayout(); + this.groupBoxNotify.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxNotifies)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownTimeout)).BeginInit(); + this.groupBoxMedia.SuspendLayout(); + this.tabPhonebook.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxCaller)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); + this.groupBoxImport.SuspendLayout(); + this.SuspendLayout(); + // + // tabControlFritzBoxSettings + // + this.tabControlFritzBoxSettings.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tabControlFritzBoxSettings.Controls.Add(this.tabGeneral); + this.tabControlFritzBoxSettings.Controls.Add(this.tabIncoming); + this.tabControlFritzBoxSettings.Controls.Add(this.tabPhonebook); + this.tabControlFritzBoxSettings.Location = new System.Drawing.Point(11, 12); + this.tabControlFritzBoxSettings.Name = "tabControlFritzBoxSettings"; + this.tabControlFritzBoxSettings.SelectedIndex = 0; + this.tabControlFritzBoxSettings.Size = new System.Drawing.Size(581, 383); + this.tabControlFritzBoxSettings.TabIndex = 14; + // + // tabGeneral + // + this.tabGeneral.Controls.Add(this.checkBoxExtensiveLogging); + this.tabGeneral.Controls.Add(this.mpGroupBox1); + this.tabGeneral.Location = new System.Drawing.Point(4, 22); + this.tabGeneral.Name = "tabGeneral"; + this.tabGeneral.Padding = new System.Windows.Forms.Padding(3); + this.tabGeneral.Size = new System.Drawing.Size(573, 357); + this.tabGeneral.TabIndex = 0; + this.tabGeneral.Text = "General"; + this.tabGeneral.UseVisualStyleBackColor = true; + // + // checkBoxExtensiveLogging + // + this.checkBoxExtensiveLogging.AutoSize = true; + this.checkBoxExtensiveLogging.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxExtensiveLogging.Location = new System.Drawing.Point(6, 138); + this.checkBoxExtensiveLogging.Name = "checkBoxExtensiveLogging"; + this.checkBoxExtensiveLogging.Size = new System.Drawing.Size(321, 17); + this.checkBoxExtensiveLogging.TabIndex = 1; + this.checkBoxExtensiveLogging.Text = "extensive logging (!!! phonenumbers are written to the logfile !!!)"; + this.checkBoxExtensiveLogging.UseVisualStyleBackColor = true; + // + // mpGroupBox1 + // + this.mpGroupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.mpGroupBox1.Controls.Add(this.numericUpDownPort); + this.mpGroupBox1.Controls.Add(this.pictureBox1); + this.mpGroupBox1.Controls.Add(this.buttonTest); + this.mpGroupBox1.Controls.Add(this.textBoxAddress); + this.mpGroupBox1.Controls.Add(this.labelPort); + this.mpGroupBox1.Controls.Add(this.labelAddress); + this.mpGroupBox1.Controls.Add(this.labelHelp); + this.mpGroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.mpGroupBox1.Location = new System.Drawing.Point(6, 6); + this.mpGroupBox1.Name = "mpGroupBox1"; + this.mpGroupBox1.Size = new System.Drawing.Size(561, 125); + this.mpGroupBox1.TabIndex = 0; + this.mpGroupBox1.TabStop = false; + this.mpGroupBox1.Text = "connection"; + // + // numericUpDownPort + // + this.numericUpDownPort.Location = new System.Drawing.Point(308, 47); + this.numericUpDownPort.Maximum = new decimal(new int[] { + 999999, + 0, + 0, + 0}); + this.numericUpDownPort.Name = "numericUpDownPort"; + this.numericUpDownPort.Size = new System.Drawing.Size(116, 20); + this.numericUpDownPort.TabIndex = 9; + this.numericUpDownPort.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.numericUpDownPort.Value = new decimal(new int[] { + 1012, + 0, + 0, + 0}); + // + // pictureBox1 + // + this.pictureBox1.Image = global::FritzBox.Properties.Resources.FritzBox; + this.pictureBox1.Location = new System.Drawing.Point(6, 20); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(97, 99); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox1.TabIndex = 2; + this.pictureBox1.TabStop = false; + // + // buttonTest + // + this.buttonTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonTest.Location = new System.Drawing.Point(480, 20); + this.buttonTest.Name = "buttonTest"; + this.buttonTest.Size = new System.Drawing.Size(75, 21); + this.buttonTest.TabIndex = 2; + this.buttonTest.Text = "Test"; + this.buttonTest.UseVisualStyleBackColor = true; + this.buttonTest.Click += new System.EventHandler(this.buttonTest_Click); + // + // textBoxAddress + // + this.textBoxAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxAddress.BorderColor = System.Drawing.Color.Empty; + this.textBoxAddress.Location = new System.Drawing.Point(165, 20); + this.textBoxAddress.Name = "textBoxAddress"; + this.textBoxAddress.Size = new System.Drawing.Size(309, 20); + this.textBoxAddress.TabIndex = 0; + // + // labelPort + // + this.labelPort.AutoSize = true; + this.labelPort.Location = new System.Drawing.Point(128, 50); + this.labelPort.Name = "labelPort"; + this.labelPort.Size = new System.Drawing.Size(29, 13); + this.labelPort.TabIndex = 8; + this.labelPort.Text = "Port:"; + // + // labelAddress + // + this.labelAddress.AutoSize = true; + this.labelAddress.Location = new System.Drawing.Point(109, 24); + this.labelAddress.Name = "labelAddress"; + this.labelAddress.Size = new System.Drawing.Size(48, 13); + this.labelAddress.TabIndex = 7; + this.labelAddress.Text = "Address:"; + // + // labelHelp + // + this.labelHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.labelHelp.Location = new System.Drawing.Point(165, 73); + this.labelHelp.Name = "labelHelp"; + this.labelHelp.Size = new System.Drawing.Size(390, 49); + this.labelHelp.TabIndex = 6; + // + // tabIncoming + // + this.tabIncoming.Controls.Add(this.groupBoxImport); + this.tabIncoming.Controls.Add(this.groupBoxPhonebook); + this.tabIncoming.Controls.Add(this.groupBoxNotify); + this.tabIncoming.Controls.Add(this.groupBoxMedia); + this.tabIncoming.Location = new System.Drawing.Point(4, 22); + this.tabIncoming.Name = "tabIncoming"; + this.tabIncoming.Padding = new System.Windows.Forms.Padding(3); + this.tabIncoming.Size = new System.Drawing.Size(573, 357); + this.tabIncoming.TabIndex = 1; + this.tabIncoming.Text = "Incoming Call"; + this.tabIncoming.UseVisualStyleBackColor = true; + // + // groupBoxPhonebook + // + this.groupBoxPhonebook.Controls.Add(this.checkBoxSaveUnknownCaller); + this.groupBoxPhonebook.Controls.Add(this.checkBoxShowUnknownCaller); + this.groupBoxPhonebook.Controls.Add(this.checkBoxUsePhonebook); + this.groupBoxPhonebook.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.groupBoxPhonebook.Location = new System.Drawing.Point(6, 208); + this.groupBoxPhonebook.Name = "groupBoxPhonebook"; + this.groupBoxPhonebook.Size = new System.Drawing.Size(177, 95); + this.groupBoxPhonebook.TabIndex = 2; + this.groupBoxPhonebook.TabStop = false; + this.groupBoxPhonebook.Text = "phonebook settings"; + // + // checkBoxSaveUnknownCaller + // + this.checkBoxSaveUnknownCaller.AutoSize = true; + this.checkBoxSaveUnknownCaller.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxSaveUnknownCaller.Location = new System.Drawing.Point(24, 68); + this.checkBoxSaveUnknownCaller.Name = "checkBoxSaveUnknownCaller"; + this.checkBoxSaveUnknownCaller.Size = new System.Drawing.Size(122, 17); + this.checkBoxSaveUnknownCaller.TabIndex = 2; + this.checkBoxSaveUnknownCaller.Text = "save unknown caller"; + this.checkBoxSaveUnknownCaller.UseVisualStyleBackColor = true; + // + // checkBoxShowUnknownCaller + // + this.checkBoxShowUnknownCaller.AutoSize = true; + this.checkBoxShowUnknownCaller.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxShowUnknownCaller.Location = new System.Drawing.Point(24, 45); + this.checkBoxShowUnknownCaller.Name = "checkBoxShowUnknownCaller"; + this.checkBoxShowUnknownCaller.Size = new System.Drawing.Size(124, 17); + this.checkBoxShowUnknownCaller.TabIndex = 1; + this.checkBoxShowUnknownCaller.Text = "show unknown caller"; + this.checkBoxShowUnknownCaller.UseVisualStyleBackColor = true; + // + // checkBoxUsePhonebook + // + this.checkBoxUsePhonebook.AutoSize = true; + this.checkBoxUsePhonebook.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxUsePhonebook.Location = new System.Drawing.Point(6, 20); + this.checkBoxUsePhonebook.Name = "checkBoxUsePhonebook"; + this.checkBoxUsePhonebook.Size = new System.Drawing.Size(98, 17); + this.checkBoxUsePhonebook.TabIndex = 0; + this.checkBoxUsePhonebook.Text = "use phonebook"; + this.checkBoxUsePhonebook.UseVisualStyleBackColor = true; + this.checkBoxUsePhonebook.CheckedChanged += new System.EventHandler(this.checkBoxUsePhonebook_CheckedChanged); + // + // groupBoxNotify + // + this.groupBoxNotify.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxNotify.Controls.Add(this.checkBoxCloseOnConnectionClosed); + this.groupBoxNotify.Controls.Add(this.lblMaxNotifies); + this.groupBoxNotify.Controls.Add(this.numericUpDownMaxNotifies); + this.groupBoxNotify.Controls.Add(this.checkBoxShowMsnOnHeading); + this.groupBoxNotify.Controls.Add(this.buttonMSNsRemove); + this.groupBoxNotify.Controls.Add(this.checkBoxFilterMSNs); + this.groupBoxNotify.Controls.Add(this.buttonMSNsAdd); + this.groupBoxNotify.Controls.Add(this.comboBoxMSNs); + this.groupBoxNotify.Controls.Add(this.numericUpDownTimeout); + this.groupBoxNotify.Controls.Add(this.checkBoxCloseOnTimout); + this.groupBoxNotify.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.groupBoxNotify.Location = new System.Drawing.Point(6, 6); + this.groupBoxNotify.Name = "groupBoxNotify"; + this.groupBoxNotify.Size = new System.Drawing.Size(561, 122); + this.groupBoxNotify.TabIndex = 0; + this.groupBoxNotify.TabStop = false; + this.groupBoxNotify.Text = "notify settings"; + // + // checkBoxCloseOnConnectionClosed + // + this.checkBoxCloseOnConnectionClosed.AutoSize = true; + this.checkBoxCloseOnConnectionClosed.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxCloseOnConnectionClosed.Location = new System.Drawing.Point(6, 43); + this.checkBoxCloseOnConnectionClosed.Name = "checkBoxCloseOnConnectionClosed"; + this.checkBoxCloseOnConnectionClosed.Size = new System.Drawing.Size(197, 17); + this.checkBoxCloseOnConnectionClosed.TabIndex = 9; + this.checkBoxCloseOnConnectionClosed.Text = "auto-close after connection is closed"; + this.checkBoxCloseOnConnectionClosed.UseVisualStyleBackColor = true; + this.checkBoxCloseOnConnectionClosed.CheckedChanged += new System.EventHandler(this.checkBoxCloseOnConnectionClosed_CheckedChanged); + // + // lblMaxNotifies + // + this.lblMaxNotifies.AutoSize = true; + this.lblMaxNotifies.Location = new System.Drawing.Point(21, 68); + this.lblMaxNotifies.Name = "lblMaxNotifies"; + this.lblMaxNotifies.Size = new System.Drawing.Size(91, 13); + this.lblMaxNotifies.TabIndex = 8; + this.lblMaxNotifies.Text = "maximum Notifies:"; + // + // numericUpDownMaxNotifies + // + this.numericUpDownMaxNotifies.Location = new System.Drawing.Point(206, 66); + this.numericUpDownMaxNotifies.Maximum = new decimal(new int[] { + 20, + 0, + 0, + 0}); + this.numericUpDownMaxNotifies.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.numericUpDownMaxNotifies.Name = "numericUpDownMaxNotifies"; + this.numericUpDownMaxNotifies.Size = new System.Drawing.Size(53, 20); + this.numericUpDownMaxNotifies.TabIndex = 7; + this.numericUpDownMaxNotifies.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.numericUpDownMaxNotifies.Value = new decimal(new int[] { + 20, + 0, + 0, + 0}); + // + // checkBoxShowMsnOnHeading + // + this.checkBoxShowMsnOnHeading.AutoSize = true; + this.checkBoxShowMsnOnHeading.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxShowMsnOnHeading.Location = new System.Drawing.Point(6, 93); + this.checkBoxShowMsnOnHeading.Name = "checkBoxShowMsnOnHeading"; + this.checkBoxShowMsnOnHeading.Size = new System.Drawing.Size(160, 17); + this.checkBoxShowMsnOnHeading.TabIndex = 6; + this.checkBoxShowMsnOnHeading.Text = "show MSN on notify-heading"; + this.checkBoxShowMsnOnHeading.UseVisualStyleBackColor = true; + // + // buttonMSNsRemove + // + this.buttonMSNsRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonMSNsRemove.Location = new System.Drawing.Point(492, 95); + this.buttonMSNsRemove.Name = "buttonMSNsRemove"; + this.buttonMSNsRemove.Size = new System.Drawing.Size(63, 21); + this.buttonMSNsRemove.TabIndex = 5; + this.buttonMSNsRemove.Text = "Remove"; + this.buttonMSNsRemove.UseVisualStyleBackColor = true; + this.buttonMSNsRemove.Click += new System.EventHandler(this.buttonMSNsRemove_Click); + // + // checkBoxFilterMSNs + // + this.checkBoxFilterMSNs.AutoSize = true; + this.checkBoxFilterMSNs.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxFilterMSNs.Location = new System.Drawing.Point(361, 43); + this.checkBoxFilterMSNs.Name = "checkBoxFilterMSNs"; + this.checkBoxFilterMSNs.Size = new System.Drawing.Size(190, 17); + this.checkBoxFilterMSNs.TabIndex = 2; + this.checkBoxFilterMSNs.Text = "show notify only for following MSNs"; + this.checkBoxFilterMSNs.UseVisualStyleBackColor = true; + this.checkBoxFilterMSNs.Click += new System.EventHandler(this.checkBoxFilterMSNs_CheckedChanged); + // + // buttonMSNsAdd + // + this.buttonMSNsAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonMSNsAdd.Location = new System.Drawing.Point(423, 95); + this.buttonMSNsAdd.Name = "buttonMSNsAdd"; + this.buttonMSNsAdd.Size = new System.Drawing.Size(63, 21); + this.buttonMSNsAdd.TabIndex = 4; + this.buttonMSNsAdd.Text = "Add"; + this.buttonMSNsAdd.UseVisualStyleBackColor = true; + this.buttonMSNsAdd.Click += new System.EventHandler(this.buttonMSNsAdd_Click); + // + // comboBoxMSNs + // + this.comboBoxMSNs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.comboBoxMSNs.BorderColor = System.Drawing.Color.Empty; + this.comboBoxMSNs.FormattingEnabled = true; + this.comboBoxMSNs.Location = new System.Drawing.Point(329, 68); + this.comboBoxMSNs.Name = "comboBoxMSNs"; + this.comboBoxMSNs.Size = new System.Drawing.Size(226, 21); + this.comboBoxMSNs.Sorted = true; + this.comboBoxMSNs.TabIndex = 3; + // + // numericUpDownTimeout + // + this.numericUpDownTimeout.Enabled = false; + this.numericUpDownTimeout.Location = new System.Drawing.Point(206, 20); + this.numericUpDownTimeout.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.numericUpDownTimeout.Name = "numericUpDownTimeout"; + this.numericUpDownTimeout.Size = new System.Drawing.Size(53, 20); + this.numericUpDownTimeout.TabIndex = 1; + this.numericUpDownTimeout.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.numericUpDownTimeout.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + // + // checkBoxCloseOnTimout + // + this.checkBoxCloseOnTimout.AutoSize = true; + this.checkBoxCloseOnTimout.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxCloseOnTimout.Location = new System.Drawing.Point(6, 20); + this.checkBoxCloseOnTimout.Name = "checkBoxCloseOnTimout"; + this.checkBoxCloseOnTimout.Size = new System.Drawing.Size(171, 17); + this.checkBoxCloseOnTimout.TabIndex = 0; + this.checkBoxCloseOnTimout.Text = "auto-close after timeout expired"; + this.checkBoxCloseOnTimout.UseVisualStyleBackColor = true; + this.checkBoxCloseOnTimout.CheckedChanged += new System.EventHandler(this.checkBoxCloseOnTimout_CheckedChanged); + // + // groupBoxMedia + // + this.groupBoxMedia.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxMedia.Controls.Add(this.checkBoxResumeMedia); + this.groupBoxMedia.Controls.Add(this.checkBoxStopMedia); + this.groupBoxMedia.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.groupBoxMedia.Location = new System.Drawing.Point(6, 134); + this.groupBoxMedia.Name = "groupBoxMedia"; + this.groupBoxMedia.Size = new System.Drawing.Size(561, 68); + this.groupBoxMedia.TabIndex = 1; + this.groupBoxMedia.TabStop = false; + this.groupBoxMedia.Text = "media settings"; + // + // checkBoxResumeMedia + // + this.checkBoxResumeMedia.AutoSize = true; + this.checkBoxResumeMedia.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxResumeMedia.Location = new System.Drawing.Point(24, 45); + this.checkBoxResumeMedia.Name = "checkBoxResumeMedia"; + this.checkBoxResumeMedia.Size = new System.Drawing.Size(161, 17); + this.checkBoxResumeMedia.TabIndex = 1; + this.checkBoxResumeMedia.Text = "auto-resume on closing notify"; + this.checkBoxResumeMedia.UseVisualStyleBackColor = true; + // + // checkBoxStopMedia + // + this.checkBoxStopMedia.AutoSize = true; + this.checkBoxStopMedia.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxStopMedia.Location = new System.Drawing.Point(6, 20); + this.checkBoxStopMedia.Name = "checkBoxStopMedia"; + this.checkBoxStopMedia.Size = new System.Drawing.Size(123, 17); + this.checkBoxStopMedia.TabIndex = 0; + this.checkBoxStopMedia.Text = "stop on incoming call"; + this.checkBoxStopMedia.UseVisualStyleBackColor = true; + this.checkBoxStopMedia.CheckedChanged += new System.EventHandler(this.checkBoxStopMedia_CheckedChanged); + // + // tabPhonebook + // + this.tabPhonebook.Controls.Add(this.buttonClearAll); + this.tabPhonebook.Controls.Add(this.pictureBoxCaller); + this.tabPhonebook.Controls.Add(this.buttonCallerChange); + this.tabPhonebook.Controls.Add(this.checkBoxCallerShow); + this.tabPhonebook.Controls.Add(this.textBoxCallerName); + this.tabPhonebook.Controls.Add(this.textBoxCallerId); + this.tabPhonebook.Controls.Add(this.buttonCallerRemove); + this.tabPhonebook.Controls.Add(this.dataGridView); + this.tabPhonebook.Controls.Add(this.labelCallerId); + this.tabPhonebook.Controls.Add(this.labelCallerName); + this.tabPhonebook.Location = new System.Drawing.Point(4, 22); + this.tabPhonebook.Name = "tabPhonebook"; + this.tabPhonebook.Padding = new System.Windows.Forms.Padding(3); + this.tabPhonebook.Size = new System.Drawing.Size(573, 357); + this.tabPhonebook.TabIndex = 2; + this.tabPhonebook.Text = "Phonebook"; + this.tabPhonebook.UseVisualStyleBackColor = true; + // + // pictureBoxCaller + // + this.pictureBoxCaller.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.pictureBoxCaller.Location = new System.Drawing.Point(467, 86); + this.pictureBoxCaller.Name = "pictureBoxCaller"; + this.pictureBoxCaller.Size = new System.Drawing.Size(100, 122); + this.pictureBoxCaller.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBoxCaller.TabIndex = 13; + this.pictureBoxCaller.TabStop = false; + // + // buttonCallerChange + // + this.buttonCallerChange.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonCallerChange.Location = new System.Drawing.Point(467, 326); + this.buttonCallerChange.Name = "buttonCallerChange"; + this.buttonCallerChange.Size = new System.Drawing.Size(100, 25); + this.buttonCallerChange.TabIndex = 3; + this.buttonCallerChange.Text = "Change"; + this.buttonCallerChange.UseVisualStyleBackColor = true; + this.buttonCallerChange.Click += new System.EventHandler(this.buttonCallerChange_Click); + // + // checkBoxCallerShow + // + this.checkBoxCallerShow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.checkBoxCallerShow.AutoSize = true; + this.checkBoxCallerShow.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.checkBoxCallerShow.Location = new System.Drawing.Point(490, 302); + this.checkBoxCallerShow.Name = "checkBoxCallerShow"; + this.checkBoxCallerShow.Size = new System.Drawing.Size(77, 17); + this.checkBoxCallerShow.TabIndex = 2; + this.checkBoxCallerShow.Text = "show notify"; + this.checkBoxCallerShow.UseVisualStyleBackColor = true; + // + // textBoxCallerName + // + this.textBoxCallerName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxCallerName.BorderColor = System.Drawing.Color.Empty; + this.textBoxCallerName.Location = new System.Drawing.Point(467, 270); + this.textBoxCallerName.Name = "textBoxCallerName"; + this.textBoxCallerName.Size = new System.Drawing.Size(100, 20); + this.textBoxCallerName.TabIndex = 1; + // + // textBoxCallerId + // + this.textBoxCallerId.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxCallerId.BorderColor = System.Drawing.Color.Empty; + this.textBoxCallerId.Location = new System.Drawing.Point(467, 228); + this.textBoxCallerId.Name = "textBoxCallerId"; + this.textBoxCallerId.Size = new System.Drawing.Size(100, 20); + this.textBoxCallerId.TabIndex = 0; + // + // buttonCallerRemove + // + this.buttonCallerRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonCallerRemove.Location = new System.Drawing.Point(467, 6); + this.buttonCallerRemove.Name = "buttonCallerRemove"; + this.buttonCallerRemove.Size = new System.Drawing.Size(100, 25); + this.buttonCallerRemove.TabIndex = 6; + this.buttonCallerRemove.Text = "Remove"; + this.buttonCallerRemove.UseVisualStyleBackColor = true; + this.buttonCallerRemove.Click += new System.EventHandler(this.buttonCallerRemove_Click); + // + // dataGridView + // + this.dataGridView.AllowUserToDeleteRows = false; + this.dataGridView.AllowUserToResizeRows = false; + this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colCallerId, + this.colName, + this.colShow}); + this.dataGridView.Location = new System.Drawing.Point(6, 6); + this.dataGridView.MultiSelect = false; + this.dataGridView.Name = "dataGridView"; + this.dataGridView.ReadOnly = true; + this.dataGridView.RowHeadersVisible = false; + this.dataGridView.RowTemplate.Height = 23; + this.dataGridView.RowTemplate.ReadOnly = true; + this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dataGridView.Size = new System.Drawing.Size(455, 345); + this.dataGridView.TabIndex = 5; + this.dataGridView.Sorted += new System.EventHandler(this.dataGridView_Sorted); + this.dataGridView.SelectionChanged += new System.EventHandler(this.dataGridView_SelectionChanged); + // + // colCallerId + // + this.colCallerId.DataPropertyName = "dataSet_colCallerId"; + this.colCallerId.HeaderText = "CallerId"; + this.colCallerId.Name = "colCallerId"; + this.colCallerId.ReadOnly = true; + // + // colName + // + this.colName.DataPropertyName = "dataSet_colName"; + this.colName.HeaderText = "Name"; + this.colName.Name = "colName"; + this.colName.ReadOnly = true; + // + // colShow + // + this.colShow.DataPropertyName = "dataSet_colShow"; + this.colShow.HeaderText = "Show"; + this.colShow.Name = "colShow"; + this.colShow.ReadOnly = true; + // + // labelCallerId + // + this.labelCallerId.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.labelCallerId.AutoSize = true; + this.labelCallerId.Location = new System.Drawing.Point(473, 211); + this.labelCallerId.Name = "labelCallerId"; + this.labelCallerId.Size = new System.Drawing.Size(42, 13); + this.labelCallerId.TabIndex = 12; + this.labelCallerId.Text = "CallerId"; + // + // labelCallerName + // + this.labelCallerName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.labelCallerName.AutoSize = true; + this.labelCallerName.Location = new System.Drawing.Point(473, 253); + this.labelCallerName.Name = "labelCallerName"; + this.labelCallerName.Size = new System.Drawing.Size(35, 13); + this.labelCallerName.TabIndex = 11; + this.labelCallerName.Text = "Name"; + // + // labelVersion + // + this.labelVersion.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.labelVersion.Location = new System.Drawing.Point(345, 402); + this.labelVersion.Name = "labelVersion"; + this.labelVersion.Size = new System.Drawing.Size(85, 25); + this.labelVersion.TabIndex = 17; + this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // buttonSave + // + this.buttonSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonSave.Location = new System.Drawing.Point(436, 402); + this.buttonSave.Name = "buttonSave"; + this.buttonSave.Size = new System.Drawing.Size(75, 25); + this.buttonSave.TabIndex = 15; + this.buttonSave.Text = "Save"; + this.buttonSave.UseVisualStyleBackColor = true; + this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); + // + // buttonCancel + // + this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonCancel.Location = new System.Drawing.Point(517, 402); + this.buttonCancel.Name = "buttonCancel"; + this.buttonCancel.Size = new System.Drawing.Size(75, 25); + this.buttonCancel.TabIndex = 16; + this.buttonCancel.Text = "Cancel"; + this.buttonCancel.UseVisualStyleBackColor = true; + this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); + // + // buttonClearAll + // + this.buttonClearAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonClearAll.Location = new System.Drawing.Point(467, 37); + this.buttonClearAll.Name = "buttonClearAll"; + this.buttonClearAll.Size = new System.Drawing.Size(100, 25); + this.buttonClearAll.TabIndex = 14; + this.buttonClearAll.Text = "Clear All"; + this.buttonClearAll.UseVisualStyleBackColor = true; + this.buttonClearAll.Click += new System.EventHandler(this.buttonClearAll_Click); + // + // mpImportFBMonitor + // + this.mpImportFBMonitor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.mpImportFBMonitor.Location = new System.Drawing.Point(279, 66); + this.mpImportFBMonitor.Name = "mpImportFBMonitor"; + this.mpImportFBMonitor.Size = new System.Drawing.Size(93, 23); + this.mpImportFBMonitor.TabIndex = 3; + this.mpImportFBMonitor.Text = "Import"; + this.mpImportFBMonitor.UseVisualStyleBackColor = true; + this.mpImportFBMonitor.Click += new System.EventHandler(this.mpImportFBMonitor_Click); + // + // textBoxSuffixWork + // + this.textBoxSuffixWork.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxSuffixWork.BorderColor = System.Drawing.Color.Empty; + this.textBoxSuffixWork.Location = new System.Drawing.Point(85, 45); + this.textBoxSuffixWork.Name = "textBoxSuffixWork"; + this.textBoxSuffixWork.Size = new System.Drawing.Size(141, 20); + this.textBoxSuffixWork.TabIndex = 4; + // + // textBoxSuffixHome + // + this.textBoxSuffixHome.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxSuffixHome.BorderColor = System.Drawing.Color.Empty; + this.textBoxSuffixHome.Location = new System.Drawing.Point(85, 19); + this.textBoxSuffixHome.Name = "textBoxSuffixHome"; + this.textBoxSuffixHome.Size = new System.Drawing.Size(141, 20); + this.textBoxSuffixHome.TabIndex = 5; + // + // textBoxSuffixMobile + // + this.textBoxSuffixMobile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxSuffixMobile.BorderColor = System.Drawing.Color.Empty; + this.textBoxSuffixMobile.Location = new System.Drawing.Point(85, 71); + this.textBoxSuffixMobile.Name = "textBoxSuffixMobile"; + this.textBoxSuffixMobile.Size = new System.Drawing.Size(141, 20); + this.textBoxSuffixMobile.TabIndex = 6; + // + // groupBoxImport + // + this.groupBoxImport.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxImport.Controls.Add(this.mpLabel3); + this.groupBoxImport.Controls.Add(this.mpLabel2); + this.groupBoxImport.Controls.Add(this.labelSuffixHome); + this.groupBoxImport.Controls.Add(this.textBoxSuffixMobile); + this.groupBoxImport.Controls.Add(this.textBoxSuffixHome); + this.groupBoxImport.Controls.Add(this.mpImportFBMonitor); + this.groupBoxImport.Controls.Add(this.textBoxSuffixWork); + this.groupBoxImport.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.groupBoxImport.Location = new System.Drawing.Point(189, 208); + this.groupBoxImport.Name = "groupBoxImport"; + this.groupBoxImport.Size = new System.Drawing.Size(378, 95); + this.groupBoxImport.TabIndex = 3; + this.groupBoxImport.TabStop = false; + this.groupBoxImport.Text = "Fritz!Box CallMonitor import"; + // + // labelSuffixHome + // + this.labelSuffixHome.AutoSize = true; + this.labelSuffixHome.Location = new System.Drawing.Point(6, 22); + this.labelSuffixHome.Name = "labelSuffixHome"; + this.labelSuffixHome.Size = new System.Drawing.Size(65, 13); + this.labelSuffixHome.TabIndex = 7; + this.labelSuffixHome.Text = "Suffix home:"; + // + // mpLabel2 + // + this.mpLabel2.AutoSize = true; + this.mpLabel2.Location = new System.Drawing.Point(6, 48); + this.mpLabel2.Name = "mpLabel2"; + this.mpLabel2.Size = new System.Drawing.Size(62, 13); + this.mpLabel2.TabIndex = 8; + this.mpLabel2.Text = "Suffix work:"; + // + // mpLabel3 + // + this.mpLabel3.AutoSize = true; + this.mpLabel3.Location = new System.Drawing.Point(6, 74); + this.mpLabel3.Name = "mpLabel3"; + this.mpLabel3.Size = new System.Drawing.Size(69, 13); + this.mpLabel3.TabIndex = 9; + this.mpLabel3.Text = "Suffix mobile:"; + // + // FritzBoxSetupFrom + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(602, 439); + this.Controls.Add(this.tabControlFritzBoxSettings); + this.Controls.Add(this.labelVersion); + this.Controls.Add(this.buttonSave); + this.Controls.Add(this.buttonCancel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FritzBoxSetupFrom"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "FRITZ!Box configuration"; + this.tabControlFritzBoxSettings.ResumeLayout(false); + this.tabGeneral.ResumeLayout(false); + this.tabGeneral.PerformLayout(); + this.mpGroupBox1.ResumeLayout(false); + this.mpGroupBox1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPort)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.tabIncoming.ResumeLayout(false); + this.groupBoxPhonebook.ResumeLayout(false); + this.groupBoxPhonebook.PerformLayout(); + this.groupBoxNotify.ResumeLayout(false); + this.groupBoxNotify.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxNotifies)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownTimeout)).EndInit(); + this.groupBoxMedia.ResumeLayout(false); + this.groupBoxMedia.PerformLayout(); + this.tabPhonebook.ResumeLayout(false); + this.tabPhonebook.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxCaller)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); + this.groupBoxImport.ResumeLayout(false); + this.groupBoxImport.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private MediaPortal.UserInterface.Controls.MPTabControl tabControlFritzBoxSettings; + private System.Windows.Forms.TabPage tabGeneral; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxExtensiveLogging; + private MediaPortal.UserInterface.Controls.MPGroupBox mpGroupBox1; + private System.Windows.Forms.PictureBox pictureBox1; + private MediaPortal.UserInterface.Controls.MPButton buttonTest; + private MediaPortal.UserInterface.Controls.MPTextBox textBoxAddress; + private MediaPortal.UserInterface.Controls.MPLabel labelPort; + private MediaPortal.UserInterface.Controls.MPLabel labelAddress; + private MediaPortal.UserInterface.Controls.MPLabel labelHelp; + private System.Windows.Forms.TabPage tabIncoming; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxPhonebook; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxSaveUnknownCaller; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxShowUnknownCaller; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxUsePhonebook; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxNotify; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxShowMsnOnHeading; + private MediaPortal.UserInterface.Controls.MPButton buttonMSNsRemove; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxFilterMSNs; + private MediaPortal.UserInterface.Controls.MPButton buttonMSNsAdd; + private MediaPortal.UserInterface.Controls.MPComboBox comboBoxMSNs; + private MediaPortal.UserInterface.Controls.MPNumericUpDown numericUpDownTimeout; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxCloseOnTimout; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxMedia; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxResumeMedia; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxStopMedia; + private System.Windows.Forms.TabPage tabPhonebook; + private System.Windows.Forms.PictureBox pictureBoxCaller; + private MediaPortal.UserInterface.Controls.MPButton buttonCallerChange; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxCallerShow; + private MediaPortal.UserInterface.Controls.MPTextBox textBoxCallerName; + private MediaPortal.UserInterface.Controls.MPTextBox textBoxCallerId; + private MediaPortal.UserInterface.Controls.MPButton buttonCallerRemove; + private System.Windows.Forms.DataGridView dataGridView; + private System.Windows.Forms.DataGridViewTextBoxColumn colCallerId; + private System.Windows.Forms.DataGridViewTextBoxColumn colName; + private System.Windows.Forms.DataGridViewCheckBoxColumn colShow; + private MediaPortal.UserInterface.Controls.MPLabel labelCallerId; + private MediaPortal.UserInterface.Controls.MPLabel labelCallerName; + private MediaPortal.UserInterface.Controls.MPLabel labelVersion; + private MediaPortal.UserInterface.Controls.MPButton buttonSave; + private MediaPortal.UserInterface.Controls.MPButton buttonCancel; + private System.Windows.Forms.OpenFileDialog openFileDialog; + private MediaPortal.UserInterface.Controls.MPNumericUpDown numericUpDownMaxNotifies; + private MediaPortal.UserInterface.Controls.MPLabel lblMaxNotifies; + private System.Windows.Forms.NumericUpDown numericUpDownPort; + private MediaPortal.UserInterface.Controls.MPCheckBox checkBoxCloseOnConnectionClosed; + private MediaPortal.UserInterface.Controls.MPButton buttonClearAll; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxImport; + private MediaPortal.UserInterface.Controls.MPTextBox textBoxSuffixMobile; + private MediaPortal.UserInterface.Controls.MPTextBox textBoxSuffixHome; + private MediaPortal.UserInterface.Controls.MPButton mpImportFBMonitor; + private MediaPortal.UserInterface.Controls.MPTextBox textBoxSuffixWork; + private MediaPortal.UserInterface.Controls.MPLabel mpLabel3; + private MediaPortal.UserInterface.Controls.MPLabel mpLabel2; + private MediaPortal.UserInterface.Controls.MPLabel labelSuffixHome; + } +} \ No newline at end of file Property changes on: trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.Designer.cs ___________________________________________________________________ Added: svn:mergeinfo + Copied: trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.cs (from rev 2294, trunk/plugins/FritzBox/FritzBox/FritzBoxSetupFrom.cs) =================================================================== --- trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.cs (rev 0) +++ trunk/plugins/FritzBox/FritzBox/FritzBoxConfig.cs 2008-11-06 17:35:18 UTC (rev 2295) @@ -0,0 +1,354 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +using System.Collections; +using System.Net.Sockets; +using System.IO; + +using MediaPortal.Configuration; +using MediaPortal.GUI.Library; +using MediaPortal.Profile; +using MediaPortal.Util; + +namespace FritzBox +{ + public partial class FritzBoxConfig : Form + { + public FritzBoxConfig() + { + InitializeComponent(); + + LoadSettings(); + } + + private void LoadSettings() + { + labelVersion.Text = "v" + FritzBox._version; + + FritzBox.Settings.Load(); + + checkBoxExtensiveLogging.Checked = FritzBox.Settings.ExtensiveLogging; + + textBoxAddress.Text = FritzBoxClient.Address; + numericUpDownPort.Value = FritzBoxClient.Port; + + // notify settings + numericUpDownMaxNotifies.Value = FritzBox.Settings.MaxNotifies; + checkBoxCloseOnTimout.Checked = FritzBox.Settings.CloseOnTimeout; + numericUpDownTimeout.Value = FritzBox.Settings.NotifyTimeout; + checkBoxCloseOnConnectionClosed.Checked = FritzBox.Settings.CloseOnConnectionClosed; + + numericUpDownTimeout.Enabled = checkBoxCloseOnTimout.Checked; + + checkBoxFilterMSNs.Checked = FritzBox.Settings.FilterMSNs; + comboBoxMSNs.Enabled = checkBoxFilterMSNs.Checked; + buttonMSNsAdd.Enabled = checkBoxFilterMSNs.Checked; + buttonMSNsRemove.Enabled = checkBoxFilterMSNs.Checked; + + comboBoxMSNs.Items.Clear(); + comboBoxMSNs.Items.AddRange(FritzBox.Settings.MsnList.ToArray()); + + checkBoxShowMsnOnHeading.Checked = FritzBox.Settings.ShowMsnOnHeading; + + // media settings + checkBoxStopMedia.Checked = FritzBox.Settings.StopMedia; + checkBoxResumeMedia.Checked = FritzBox.Settings.ResumeMedia; + + // phonebook settings + checkBoxUsePhonebook.Checked = PhoneBook.Enabled; + + checkBoxShowUnknownCaller.Checked = PhoneBook.ShowUnknownCaller; + checkBoxSaveUnknownCaller.Checked = PhoneBook.SaveUnknownCaller; + checkBoxShowUnknownCaller.Enabled = checkBoxUsePhonebook.Checked; + checkBoxSaveUnknownCaller.Enabled = checkBoxUsePhonebook.Checked; + + textBoxSuffixHome.Text = PhoneBook.SuffixHome; + textBoxSuffixWork.Text = PhoneBook.SuffixWork; + textBoxSuffixMobile.Text = PhoneBook.SuffixMobile; + + RefreshDataGridView(); + } + + private void SaveSettings() + { + FritzBox.Settings.ExtensiveLogging = checkBoxExtensiveLogging.Checked; + + FritzBoxClient.Address = textBoxAddress.Text; + FritzBoxClient.Port = (int)numericUpDownPort.Value; + + // notify settings + FritzBox.Settings.MaxNotifies = (int)numericUpDownMaxNotifies.Value; + FritzBox.Settings.CloseOnTimeout = checkBoxCloseOnTimout.Checked; + FritzBox.Settings.NotifyTimeout = (int)numericUpDownTimeout.Value; + FritzBox.Settings.CloseOnConnectionClosed = checkBoxCloseOnConnectionClosed.Checked; + + FritzBox.Settings.FilterMSNs = checkBoxFilterMSNs.Checked; + FritzBox.Settings.MsnList.Clear(); + foreach (object obj in comboBoxMSNs.Items) + { + FritzBox.Settings.MsnList.Add((string) obj); + } + + FritzBox.Settings.ShowMsnOnHeading = checkBoxShowMsnOnHeading.Checked; + + // media settings + FritzBox.Settings.StopMedia = checkBoxStopMedia.Checked; + FritzBox.Settings.ResumeMedia = checkBoxResumeMedia.Checked; + + // phonebook settings + PhoneBook.Enabled = checkBoxUsePhonebook.Checked; + PhoneBook.ShowUnknownCaller = checkBoxShowUnknownCaller.Checked; + PhoneBook.SaveUnknownCaller = checkBoxSaveUnknownCaller.Checked; + PhoneBook.SuffixHome = textBoxSuffixHome.Text; + PhoneBook.SuffixWork = textBoxSuffixWork.Text; + PhoneBook.SuffixMobile = textBoxSuffixMobile.Text; + + SaveDataGridView(); + + FritzBox.Settings.Save(); + } + + + private void buttonSave_Click(object sender, EventArgs e) + { + SaveSettings(); + this.Close(); + } + + private void buttonCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + private void buttonTest_Click(object sender, EventArgs e) + { + FritzBoxClient.Address = textBoxAddress.Text; + FritzBoxClient.Port = (int)numericUpDownPort.Value; + + labelHelp.Text = "Please wait..."; + labelHelp.Text = FritzBoxClient.TestConnection(); + } + + + private void checkBoxCloseOnTimout_CheckedChanged(object sender, EventArgs e) + { + numericUpDownTimeout.Enabled = checkBoxCloseOnTimout.Checked; + } + + private void checkBoxFilterMSNs_CheckedChanged(object sender, EventArgs e) + { + comboBoxMSNs.Enabled = checkBoxFilterMSNs.Checked; + buttonMSNsAdd.Enabled = checkBoxFilterMSNs.Checked; + buttonMSNsRemove.Enabled = checkBoxFilterMSNs.Checked; + } + + private void checkBoxStopMedia_CheckedChanged(object sender, EventArgs e) + { + checkBoxResumeMedia.Enabled = checkBoxStopMedia.Ch... [truncated message content] |