From: <die...@us...> - 2007-01-27 18:38:46
|
Revision: 34 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=34&view=rev Author: diehard2 Date: 2007-01-27 10:38:44 -0800 (Sat, 27 Jan 2007) Log Message: ----------- Code cleanup. Minor config fix Modified Paths: -------------- trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/DirecTV.suo trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.Designer.cs trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.cs trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/TunerPlugin.csproj Modified: trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/DirecTV.suo =================================================================== (Binary files differ) Modified: trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.Designer.cs =================================================================== --- trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.Designer.cs 2007-01-27 18:27:22 UTC (rev 33) +++ trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.Designer.cs 2007-01-27 18:38:44 UTC (rev 34) @@ -28,7 +28,7 @@ /// </summary> private void InitializeComponent() { - this.rcomponents = new System.ComponentModel.Container(); + this.components = new System.ComponentModel.Container(); this.globalBox = new System.Windows.Forms.GroupBox(); this.cbAdvanced = new System.Windows.Forms.CheckBox(); this.typeLabel = new System.Windows.Forms.Label(); @@ -49,7 +49,7 @@ this.communicationBox = new System.Windows.Forms.GroupBox(); this.timeoutLabel = new System.Windows.Forms.Label(); this.timeoutNumUpDown = new System.Windows.Forms.NumericUpDown(); - this.toolTip1 = new System.Windows.Forms.ToolTip(this.rcomponents); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.globalBox.SuspendLayout(); this.advancedBox.SuspendLayout(); this.communicationBox.SuspendLayout(); @@ -305,7 +305,7 @@ this.Controls.Add(this.globalBox); this.Margin = new System.Windows.Forms.Padding(4); this.Name = "SetupForm"; - this.Size = new System.Drawing.Size(573, 331); + this.Size = new System.Drawing.Size(573, 286); this.globalBox.ResumeLayout(false); this.globalBox.PerformLayout(); this.advancedBox.ResumeLayout(false); @@ -341,5 +341,6 @@ private System.Windows.Forms.CheckBox cbHideOSD; private System.Windows.Forms.ToolTip toolTip1; private System.ComponentModel.IContainer rcomponents; + private System.ComponentModel.IContainer components; } } \ No newline at end of file Modified: trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.cs =================================================================== --- trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.cs 2007-01-27 18:27:22 UTC (rev 33) +++ trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.cs 2007-01-27 18:38:44 UTC (rev 34) @@ -18,7 +18,6 @@ public SetupForm() { InitializeComponent(); - DisableAdavancedSettings(); LoadSettings(); } @@ -27,6 +26,13 @@ { _settings = new DirecTVSettings(); _settings.LoadSettings(); + + //Enable of disable advanced settings + if (_settings.Advanced) + EnableAdavancedSettings(); + else + cbtwowaydisable.Checked = _settings.TwoWayDisable; + // Build up box types combobox modelComboBox.Items.Clear(); foreach (string box in DirecTVSettings.BoxTypes) @@ -66,10 +72,6 @@ // set loaded debug value debugBox.Checked = _settings.Debug; cbAdvanced.Checked = _settings.Advanced; - if (_settings.Advanced) - EnableAdavancedSettings(); - - cbtwowaydisable.Checked = _settings.TwoWayDisable; cbHideOSD.Checked = _settings.HideOSD; } @@ -152,22 +154,14 @@ { baudComboBox.Enabled = true; timeoutNumUpDown.Enabled = true; - keyMapComboBox.Enabled = true; - commandSetBox.Enabled = true; - channelSetBox.Enabled = true; - powerOnBox.Enabled = true; - debugBox.Enabled = true; + advancedBox.Enabled = true; } private void DisableAdavancedSettings() { baudComboBox.Enabled = false; timeoutNumUpDown.Enabled = false; - keyMapComboBox.Enabled = false; - commandSetBox.Enabled = false; - channelSetBox.Enabled = false; - powerOnBox.Enabled = false; - debugBox.Enabled = false; + advancedBox.Enabled = false; } } Modified: trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/TunerPlugin.csproj =================================================================== --- trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/TunerPlugin.csproj 2007-01-27 18:27:22 UTC (rev 33) +++ trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/TunerPlugin.csproj 2007-01-27 18:38:44 UTC (rev 34) @@ -62,19 +62,19 @@ <Reference Include="Accessibility" /> <Reference Include="Gentle.Common, Version=1.2.9.1285, Culture=neutral, PublicKeyToken=80b5de62e27be49b"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\Desktop\Steve\Server\Gentle.Common.dll</HintPath> + <HintPath>..\..\..\..\..\Desktop\Steve\Server\Gentle.Common.dll</HintPath> </Reference> <Reference Include="Gentle.Framework, Version=1.2.9.1286, Culture=neutral, PublicKeyToken=80b5de62e27be49b"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\Desktop\Steve\Server\Gentle.Framework.dll</HintPath> + <HintPath>..\..\..\..\..\Desktop\Steve\Server\Gentle.Framework.dll</HintPath> </Reference> <Reference Include="PluginBase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\Desktop\Steve\Server\PluginBase.dll</HintPath> + <HintPath>..\..\..\..\..\Desktop\Steve\Server\PluginBase.dll</HintPath> </Reference> <Reference Include="SetupControls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\Desktop\Steve\Server\SetupControls.dll</HintPath> + <HintPath>..\..\..\..\..\Desktop\Steve\Server\SetupControls.dll</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> @@ -83,19 +83,19 @@ <Reference Include="System.Xml" /> <Reference Include="TvBusinessLayer, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\Desktop\Steve\Server\TvBusinessLayer.dll</HintPath> + <HintPath>..\..\..\..\..\Desktop\Steve\Server\TvBusinessLayer.dll</HintPath> </Reference> <Reference Include="TvControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\Desktop\Steve\Server\TvControl.dll</HintPath> + <HintPath>..\..\..\..\..\Desktop\Steve\Server\TvControl.dll</HintPath> </Reference> <Reference Include="TVDatabase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\Desktop\Steve\Server\TVDatabase.dll</HintPath> + <HintPath>..\..\..\..\..\Desktop\Steve\Server\TVDatabase.dll</HintPath> </Reference> <Reference Include="TvLibrary.Interfaces, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\..\..\..\..\Desktop\Steve\Server\TvLibrary.Interfaces.dll</HintPath> + <HintPath>..\..\..\..\..\Desktop\Steve\Server\TvLibrary.Interfaces.dll</HintPath> </Reference> </ItemGroup> <PropertyGroup> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2007-02-17 19:02:59
|
Revision: 120 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=120&view=rev Author: diehard2 Date: 2007-02-17 11:02:54 -0800 (Sat, 17 Feb 2007) Log Message: ----------- UI Fixes Modified Paths: -------------- trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/DirecTV.suo trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SerialInterface/SerialInterface.cs trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.cs Removed Paths: ------------- trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/obj/ Modified: trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/DirecTV.suo =================================================================== (Binary files differ) Modified: trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SerialInterface/SerialInterface.cs =================================================================== --- trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SerialInterface/SerialInterface.cs 2007-02-15 03:39:19 UTC (rev 119) +++ trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SerialInterface/SerialInterface.cs 2007-02-17 19:02:54 UTC (rev 120) @@ -457,14 +457,14 @@ } else { - Log.WriteFile("DirecTV.SerialInterface.SendCommand(): send data: {0}", ToString(cmd.dataToSend)); + Log.WriteFile("DirecTV.SerialInterface.SendCommand(): trailing zero send data: {0}", ToString(cmd.dataToSend)); _serialPort.Write(cmd.dataToSend, 0, cmd.dataToSend.Length); byte[] temp = new byte [1]; temp[0] = 0x00; _serialPort.Write(temp, 0, 1); receivedData = temp; + } } - } public void SendCommand(Command cmd) { Modified: trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.cs =================================================================== --- trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.cs 2007-02-15 03:39:19 UTC (rev 119) +++ trunk/plugins/DirectTv/TVE 3 DirecTV Plugin/TunerPlugin/SetupForm.cs 2007-02-17 19:02:54 UTC (rev 120) @@ -29,10 +29,14 @@ //Enable of disable advanced settings if (_settings.Advanced) - EnableAdavancedSettings(); + { EnableAdavancedSettings(); + cbAdvanced.Checked = true ; + } else - cbtwowaydisable.Checked = _settings.TwoWayDisable; + DisableAdavancedSettings(); + + // Build up box types combobox modelComboBox.Items.Clear(); foreach (string box in DirecTVSettings.BoxTypes) @@ -71,8 +75,9 @@ powerOnBox.Checked = _settings.PowerOn; // set loaded debug value debugBox.Checked = _settings.Debug; - cbAdvanced.Checked = _settings.Advanced; + cbHideOSD.Checked = _settings.HideOSD; + cbtwowaydisable.Checked = _settings.TwoWayDisable; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |