Index: TVLibrary/SetupTv/Dialogs/FormDVBSTuningDetail.cs =================================================================== --- TVLibrary/SetupTv/Dialogs/FormDVBSTuningDetail.cs (revision 26887) +++ TVLibrary/SetupTv/Dialogs/FormDVBSTuningDetail.cs (working copy) @@ -26,21 +26,7 @@ textBoxDVBSPmt.Text = TuningDetail.PmtPid.ToString(); textBoxDVBSProvider.Text = TuningDetail.Provider; checkBoxDVBSfta.Checked = TuningDetail.FreeToAir; - switch ((Polarisation)TuningDetail.Polarisation) - { - case Polarisation.LinearH: - comboBoxPol.SelectedIndex = 0; - break; - case Polarisation.LinearV: - comboBoxPol.SelectedIndex = 1; - break; - case Polarisation.CircularL: - comboBoxPol.SelectedIndex = 2; - break; - case Polarisation.CircularR: - comboBoxPol.SelectedIndex = 3; - break; - } + comboBoxPol.SelectedIndex = TuningDetail.Polarisation + 1; comboBoxModulation.SelectedIndex = TuningDetail.Modulation + 1; comboBoxInnerFecRate.SelectedIndex = TuningDetail.InnerFecRate + 1; comboBoxPilot.SelectedIndex = TuningDetail.Pilot + 1; @@ -90,6 +76,7 @@ TuningDetail.ServiceId = Int32.Parse(textBoxServiceId.Text); TuningDetail.Symbolrate = Int32.Parse(textBoxSymbolRate.Text); TuningDetail.SwitchingFrequency = Int32.Parse(textBoxSwitch.Text); + TuningDetail.Polarisation = (int)(Polarisation)(comboBoxPol.SelectedIndex - 1); TuningDetail.InnerFecRate = (int)(BinaryConvolutionCodeRate)(comboBoxInnerFecRate.SelectedIndex - 1); TuningDetail.Pilot = (int)(Pilot)(comboBoxPilot.SelectedIndex - 1); TuningDetail.RollOff = (int)(RollOff)(comboBoxRollOff.SelectedIndex - 1); @@ -98,21 +85,6 @@ TuningDetail.PmtPid = Int32.Parse(textBoxDVBSPmt.Text); TuningDetail.Provider = textBoxDVBSProvider.Text; TuningDetail.FreeToAir = checkBoxDVBSfta.Checked; - switch (comboBoxPol.SelectedIndex) - { - case 0: - TuningDetail.Polarisation = (int)Polarisation.LinearH; - break; - case 1: - TuningDetail.Polarisation = (int)Polarisation.LinearV; - break; - case 2: - TuningDetail.Polarisation = (int)Polarisation.CircularL; - break; - case 3: - TuningDetail.Polarisation = (int)Polarisation.CircularR; - break; - } TuningDetail.Diseqc = comboBoxDisEqc.SelectedIndex; } Index: TVLibrary/SetupTv/Dialogs/FormDVBSTuningDetail.Designer.cs =================================================================== --- TVLibrary/SetupTv/Dialogs/FormDVBSTuningDetail.Designer.cs (revision 26887) +++ TVLibrary/SetupTv/Dialogs/FormDVBSTuningDetail.Designer.cs (working copy) @@ -243,6 +243,11 @@ "5/6", "5/11", "7/8", + "1/4", + "1/3", + "2/5", + "6/7", + "8/9", "9/10", "Max"}); this.comboBoxInnerFecRate.Location = new System.Drawing.Point(85, 270); @@ -264,8 +269,8 @@ this.comboBoxModulation.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxModulation.FormattingEnabled = true; this.comboBoxModulation.Items.AddRange(new object[] { - "ModNotSet", - "ModNotDefined", + "Not Set", + "Not Defined", "Mod16Qam", "Mod32Qam", "Mod64Qam", @@ -321,7 +326,7 @@ this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(63, 13); this.label9.TabIndex = 94; - this.label9.Text = "LBN Switch"; + this.label9.Text = "LNB Switch"; // // comboBoxDisEqc // @@ -347,15 +352,15 @@ this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(44, 13); this.label10.TabIndex = 93; - this.label10.Text = "DisEqc:"; + this.label10.Text = "DiSEqC:"; // // comboBoxPol // this.comboBoxPol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxPol.FormattingEnabled = true; this.comboBoxPol.Items.AddRange(new object[] { - "NotSet", - "NotDefined", + "Not Set", + "Not Defined", "Horizontal", "Vertical", "CircularL",