// Constructor - create combobox, register selection change event handler, // register lose focus event handler public DataGridComboBoxColumn() { this.cm = null; // Create ComboBox and force DropDownList style this.comboBox = new ComboBoxTS(); this.comboBox.DropDownStyle = ComboBoxStyle.DropDownList; // Add event handler for notification of when ComboBox loses focus this.comboBox.Leave += new EventHandler(comboBox_Leave); }
public FlexControlAdvancedForm(Console c) { InitializeComponent(); console = c; fc_interface = new FlexControlInterface1(c); comboModeA1.Items.Clear(); comboModeA2.Items.Clear(); comboModeB1.Items.Clear(); comboModeB2.Items.Clear(); comboModeADouble.Items.Clear(); comboModeBDouble.Items.Clear(); foreach (Control ctrl in grpButton.Controls) { if (ctrl.GetType() == typeof(ComboBoxTS)) { ComboBoxTS combo = (ComboBoxTS)ctrl; combo.Items.Clear(); } } // populate knob combobox controls foreach (FlexControlKnobFunction function in Enum.GetValues(typeof(FlexControlKnobFunction))) { string s = KnobFunction2String(function); comboModeA1.Items.Add(s); comboModeA2.Items.Add(s); comboModeB1.Items.Add(s); comboModeB2.Items.Add(s); } // populate button combobox controls foreach (FlexControlButtonFunction function in Enum.GetValues(typeof(FlexControlButtonFunction))) { string s = ButtonFunction2String(function); comboModeADouble.Items.Add(s); comboModeBDouble.Items.Add(s); foreach (Control ctrl in grpButton.Controls) { if (ctrl.GetType() == typeof(ComboBoxTS)) { ComboBoxTS combo = (ComboBoxTS)ctrl; combo.Items.Add(s); } } } SetupDefaults(); Common.RestoreForm(this, "FlexControlAdvancedForm", false); comboModeA1_SelectedIndexChanged(this, EventArgs.Empty); comboModeA2_SelectedIndexChanged(this, EventArgs.Empty); comboModeB1_SelectedIndexChanged(this, EventArgs.Empty); comboModeB2_SelectedIndexChanged(this, EventArgs.Empty); fc_interface.CurrentKnobModeChanged += new FlexControlInterface1.KnobModeChanged(UpdateCurrentKnobMode); hlKnobA1 = new PanelHighlighter(panelModeA1); hlKnobA2 = new PanelHighlighter(panelModeA2); hlKnobB1 = new PanelHighlighter(panelModeB1); hlKnobB2 = new PanelHighlighter(panelModeB2); hlKnobADouble = new PanelHighlighter(panelModeADouble); hlKnobBDouble = new PanelHighlighter(panelModeBDouble); hlLeftSingle = new PanelHighlighter(panelLeftSingle); hlLeftDouble = new PanelHighlighter(panelLeftDouble); hlLeftLong = new PanelHighlighter(panelLeftLong); hlMidSingle = new PanelHighlighter(panelMidSingle); hlMidDouble = new PanelHighlighter(panelMidDouble); hlMidLong = new PanelHighlighter(panelMidLong); hlRightSingle = new PanelHighlighter(panelRightSingle); hlRightDouble = new PanelHighlighter(panelRightDouble); hlRightLong = new PanelHighlighter(panelRightLong); }
public static void RestoreForm(Form form, string tablename, bool restore_size) { ArrayList temp = new ArrayList(); // list of all first level controls //int VUskip = 0; ControlList(form, ref temp); ArrayList checkbox_list = new ArrayList(); ArrayList combobox_list = new ArrayList(); ArrayList numericupdown_list = new ArrayList(); ArrayList radiobutton_list = new ArrayList(); ArrayList textbox_list = new ArrayList(); ArrayList trackbar_list = new ArrayList(); ArrayList colorbutton_list = new ArrayList(); //ArrayList controls = new ArrayList(); // list of controls to restore foreach (Control c in temp) { if (c.GetType() == typeof(CheckBoxTS)) // the control is a CheckBoxTS { checkbox_list.Add(c); } else if (c.GetType() == typeof(ComboBoxTS)) // the control is a ComboBox { combobox_list.Add(c); } else if (c.GetType() == typeof(NumericUpDownTS))// the control is a NumericUpDown { numericupdown_list.Add(c); } else if (c.GetType() == typeof(RadioButtonTS)) // the control is a RadioButton { radiobutton_list.Add(c); } else if (c.GetType() == typeof(TextBoxTS)) // the control is a TextBox { textbox_list.Add(c); } else if (c.GetType() == typeof(TrackBarTS)) // the control is a TrackBar (slider) { trackbar_list.Add(c); } else if (c.GetType() == typeof(ColorButton)) { colorbutton_list.Add(c); } } temp.Clear(); // now that we have the controls we want, delete first list ArrayList a = DB.GetVars(tablename); // Get the saved list of controls a.Sort(); // restore saved values to the controls foreach (string s in a) // string is in the format "name,value" { string[] vals = s.Split('/'); if (vals.Length > 2) { for (int i = 2; i < vals.Length; i++) { vals[1] += "/" + vals[i]; } } string name = vals[0]; string val = vals[1]; switch (name) { case "Top": form.StartPosition = FormStartPosition.Manual; int top = int.Parse(val); /*if(top < 0) top = 0; * if(top > Screen.PrimaryScreen.Bounds.Height-form.Height && Screen.AllScreens.Length == 1) * top = Screen.PrimaryScreen.Bounds.Height-form.Height;*/ form.Top = top; break; case "Left": form.StartPosition = FormStartPosition.Manual; int left = int.Parse(val); /*if(left < 0) left = 0; * if(left > Screen.PrimaryScreen.Bounds.Width-form.Width && Screen.AllScreens.Length == 1) * left = Screen.PrimaryScreen.Bounds.Width-form.Width;*/ form.Left = left; break; case "Width": if (restore_size) { int width = int.Parse(val); /*if(width + form.Left > Screen.PrimaryScreen.Bounds.Width && Screen.AllScreens.Length == 1) * form.Left -= (width+form.Left-Screen.PrimaryScreen.Bounds.Width);*/ form.Width = width; } break; case "Height": if (restore_size) { int height = int.Parse(val); /*if(height + form.Top > Screen.PrimaryScreen.Bounds.Height && Screen.AllScreens.Length == 1) * form.Top -= (height+form.Top-Screen.PrimaryScreen.Bounds.Height);*/ form.Height = height; } break; } if (s.StartsWith("chk")) // control is a CheckBoxTS { for (int i = 0; i < checkbox_list.Count; i++) { // look through each control to find the matching name CheckBoxTS c = (CheckBoxTS)checkbox_list[i]; if (c.Name.Equals(name)) // name found { c.Checked = bool.Parse(val); // restore value i = checkbox_list.Count + 1; } if (i == checkbox_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("combo")) // control is a ComboBox { for (int i = 0; i < combobox_list.Count; i++) { // look through each control to find the matching name ComboBoxTS c = (ComboBoxTS)combobox_list[i]; if (c.Name.Equals(name)) // name found { c.Text = val; // restore value i = combobox_list.Count + 1; if (c.Text != val) { Debug.WriteLine("Warning: " + form.Name + "." + name + " did not set to " + val); } } if (i == combobox_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("ud")) { for (int i = 0; i < numericupdown_list.Count; i++) { // look through each control to find the matching name NumericUpDownTS c = (NumericUpDownTS)numericupdown_list[i]; if (c.Name.Equals(name)) // name found { decimal num = decimal.Parse(val); if (num > c.Maximum) { num = c.Maximum; // check endpoints } else if (num < c.Minimum) { num = c.Minimum; } c.Value = num; // restore value i = numericupdown_list.Count + 1; } if (i == numericupdown_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("rad")) { // look through each control to find the matching name for (int i = 0; i < radiobutton_list.Count; i++) { RadioButtonTS c = (RadioButtonTS)radiobutton_list[i]; if (c.Name.Equals(name)) // name found { if (!val.ToLower().Equals("true") && !val.ToLower().Equals("false")) { val = "True"; } c.Checked = bool.Parse(val); // restore value i = radiobutton_list.Count + 1; } if (i == radiobutton_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("txt")) { // look through each control to find the matching name for (int i = 0; i < textbox_list.Count; i++) { TextBoxTS c = (TextBoxTS)textbox_list[i]; if (c.Name.Equals(name)) // name found { c.Text = val; // restore value i = textbox_list.Count + 1; } if (i == textbox_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("tb")) { // look through each control to find the matching name for (int i = 0; i < trackbar_list.Count; i++) { TrackBarTS c = (TrackBarTS)trackbar_list[i]; if (c.Name.Equals(name)) // name found { int num = int.Parse(val); if (num > c.Maximum) { num = c.Maximum; } if (num < c.Minimum) { num = c.Minimum; } c.Value = num; i = trackbar_list.Count + 1; } if (i == trackbar_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("clrbtn")) { string[] colors = val.Split('.'); if (colors.Length == 4) { int R, G, B, A; R = Int32.Parse(colors[0]); G = Int32.Parse(colors[1]); B = Int32.Parse(colors[2]); A = Int32.Parse(colors[3]); for (int i = 0; i < colorbutton_list.Count; i++) { ColorButton c = (ColorButton)colorbutton_list[i]; if (c.Name.Equals(name)) // name found { c.Color = Color.FromArgb(A, R, G, B); i = colorbutton_list.Count + 1; } if (i == colorbutton_list.Count) { MessageBox.Show("Control not found: " + name); } } } } } ForceFormOnScreen(form); }
public void RestoreSettings() { ArrayList temp = new ArrayList(); // list of all first level controls ControlList(this, ref temp); ArrayList checkbox_list = new ArrayList(); ArrayList combobox_list = new ArrayList(); ArrayList numericupdown_list = new ArrayList(); ArrayList radiobutton_list = new ArrayList(); ArrayList textbox_list = new ArrayList(); ArrayList trackbar_list = new ArrayList(); ArrayList colorbutton_list = new ArrayList(); //ArrayList controls = new ArrayList(); // list of controls to restore foreach (Control c in temp) { if (c.GetType() == typeof(CheckBoxTS)) // the control is a CheckBoxTS { checkbox_list.Add(c); } else if (c.GetType() == typeof(ComboBoxTS)) // the control is a ComboBox { combobox_list.Add(c); } else if (c.GetType() == typeof(NumericUpDownTS)) // the control is a NumericUpDown { numericupdown_list.Add(c); } else if (c.GetType() == typeof(RadioButtonTS)) // the control is a RadioButton { radiobutton_list.Add(c); } else if (c.GetType() == typeof(TextBoxTS)) // the control is a TextBox { textbox_list.Add(c); } else if (c.GetType() == typeof(TrackBarTS)) // the control is a TrackBar (slider) { trackbar_list.Add(c); } else if (c.GetType() == typeof(ColorButton)) { colorbutton_list.Add(c); } } temp.Clear(); // now that we have the controls we want, delete first list ArrayList a = DB.GetVars("EQForm"); // Get the saved list of controls a.Sort(); // restore saved values to the controls foreach (string s in a) // string is in the format "name,value" { string[] vals = s.Split('/'); if (vals.Length > 2) { for (int i = 2; i < vals.Length; i++) { vals[1] += "/" + vals[i]; } } string name = vals[0]; string val = vals[1]; if (s.StartsWith("chk")) // control is a CheckBoxTS { for (int i = 0; i < checkbox_list.Count; i++) { // look through each control to find the matching name CheckBoxTS c = (CheckBoxTS)checkbox_list[i]; if (c.Name.Equals(name)) // name found { c.Checked = bool.Parse(val); // restore value i = checkbox_list.Count + 1; } if (i == checkbox_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("combo")) // control is a ComboBox { for (int i = 0; i < combobox_list.Count; i++) { // look through each control to find the matching name ComboBoxTS c = (ComboBoxTS)combobox_list[i]; if (c.Name.Equals(name)) // name found { c.Text = val; // restore value i = combobox_list.Count + 1; } if (i == combobox_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("ud")) { for (int i = 0; i < numericupdown_list.Count; i++) { // look through each control to find the matching name NumericUpDownTS c = (NumericUpDownTS)numericupdown_list[i]; if (c.Name.Equals(name)) // name found { decimal num = decimal.Parse(val); if (num > c.Maximum) { num = c.Maximum; // check endpoints } else if (num < c.Minimum) { num = c.Minimum; } c.Value = num; // restore value i = numericupdown_list.Count + 1; } if (i == numericupdown_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("rad")) { // look through each control to find the matching name for (int i = 0; i < radiobutton_list.Count; i++) { RadioButtonTS c = (RadioButtonTS)radiobutton_list[i]; if (c.Name.Equals(name)) // name found { if (!val.ToLower().Equals("true") && !val.ToLower().Equals("false")) { val = "True"; } c.Checked = bool.Parse(val); // restore value i = radiobutton_list.Count + 1; } if (i == radiobutton_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("txt")) { // look through each control to find the matching name for (int i = 0; i < textbox_list.Count; i++) { TextBoxTS c = (TextBoxTS)textbox_list[i]; if (c.Name.Equals(name)) // name found { c.Text = val; // restore value i = textbox_list.Count + 1; } if (i == textbox_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("tb")) { // look through each control to find the matching name for (int i = 0; i < trackbar_list.Count; i++) { TrackBarTS c = (TrackBarTS)trackbar_list[i]; if (c.Name.Equals(name)) // name found { c.Value = Int32.Parse(val); i = trackbar_list.Count + 1; } if (i == trackbar_list.Count) { MessageBox.Show("Control not found: " + name); } } } else if (s.StartsWith("clrbtn")) { string[] colors = val.Split('.'); if (colors.Length == 4) { int R, G, B, A; R = Int32.Parse(colors[0]); G = Int32.Parse(colors[1]); B = Int32.Parse(colors[2]); A = Int32.Parse(colors[3]); for (int i = 0; i < colorbutton_list.Count; i++) { ColorButton c = (ColorButton)colorbutton_list[i]; if (c.Name.Equals(name)) // name found { c.Color = Color.FromArgb(A, R, G, B); i = colorbutton_list.Count + 1; } if (i == colorbutton_list.Count) { MessageBox.Show("Control not found: " + name); } } } } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WaveOptions)); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.comboSampleRate = new System.Windows.Forms.ComboBoxTS(); this.radTXPostProcessed = new System.Windows.Forms.RadioButtonTS(); this.radTXPreProcessed = new System.Windows.Forms.RadioButtonTS(); this.radRXPostProcessed = new System.Windows.Forms.RadioButtonTS(); this.radRXPreProcessed = new System.Windows.Forms.RadioButtonTS(); this.txtWaveOptionsForm = new System.Windows.Forms.TextBox(); this.grpAudioSampleRate1 = new System.Windows.Forms.GroupBoxTS(); this.groupBox1 = new System.Windows.Forms.GroupBoxTS(); this.grpReceive = new System.Windows.Forms.GroupBoxTS(); this.grpAudioSampleRate1.SuspendLayout(); this.groupBox1.SuspendLayout(); this.grpReceive.SuspendLayout(); this.SuspendLayout(); // // comboSampleRate // this.comboSampleRate.Cursor = System.Windows.Forms.Cursors.Default; this.comboSampleRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboSampleRate.DropDownWidth = 64; this.comboSampleRate.Enabled = false; this.comboSampleRate.Items.AddRange(new object[] { "6000", "12000", "24000", "48000", "96000", "192000" }); this.comboSampleRate.Location = new System.Drawing.Point(16, 24); this.comboSampleRate.Name = "comboSampleRate"; this.comboSampleRate.Size = new System.Drawing.Size(64, 21); this.comboSampleRate.TabIndex = 4; this.toolTip1.SetToolTip(this.comboSampleRate, "Sample Rate -- Set the sampling rate for a post processed wave file "); // // radTXPostProcessed // this.radTXPostProcessed.Checked = true; this.radTXPostProcessed.Image = null; this.radTXPostProcessed.Location = new System.Drawing.Point(16, 48); this.radTXPostProcessed.Name = "radTXPostProcessed"; this.radTXPostProcessed.Size = new System.Drawing.Size(144, 24); this.radTXPostProcessed.TabIndex = 1; this.radTXPostProcessed.TabStop = true; this.radTXPostProcessed.Text = "Post-Processed Audio"; this.toolTip1.SetToolTip(this.radTXPostProcessed, "Filtered, modulated, EQ\'d, and AGC\'d Signal"); this.radTXPostProcessed.CheckedChanged += new System.EventHandler(this.radTXPostProcessed_CheckedChanged); // // radTXPreProcessed // this.radTXPreProcessed.Image = null; this.radTXPreProcessed.Location = new System.Drawing.Point(16, 24); this.radTXPreProcessed.Name = "radTXPreProcessed"; this.radTXPreProcessed.Size = new System.Drawing.Size(144, 24); this.radTXPreProcessed.TabIndex = 0; this.radTXPreProcessed.Text = "Pre-Processed Audio"; this.toolTip1.SetToolTip(this.radTXPreProcessed, "Raw Input (Microphone, Digital, etc)"); this.radTXPreProcessed.CheckedChanged += new System.EventHandler(this.radTXPreProcessed_CheckedChanged); // // radRXPostProcessed // this.radRXPostProcessed.Image = null; this.radRXPostProcessed.Location = new System.Drawing.Point(16, 48); this.radRXPostProcessed.Name = "radRXPostProcessed"; this.radRXPostProcessed.Size = new System.Drawing.Size(144, 24); this.radRXPostProcessed.TabIndex = 1; this.radRXPostProcessed.Text = "Post-Processed Audio"; this.toolTip1.SetToolTip(this.radRXPostProcessed, "The demodulated filtered audio you listen to."); this.radRXPostProcessed.CheckedChanged += new System.EventHandler(this.radRXPostProcessed_CheckedChanged); // // radRXPreProcessed // this.radRXPreProcessed.Checked = true; this.radRXPreProcessed.Image = null; this.radRXPreProcessed.Location = new System.Drawing.Point(16, 24); this.radRXPreProcessed.Name = "radRXPreProcessed"; this.radRXPreProcessed.Size = new System.Drawing.Size(144, 24); this.radRXPreProcessed.TabIndex = 0; this.radRXPreProcessed.TabStop = true; this.radRXPreProcessed.Text = "Pre-Processed Audio"; this.toolTip1.SetToolTip(this.radRXPreProcessed, "The raw audio coming out of the radio (11kHz IF)"); this.radRXPreProcessed.CheckedChanged += new System.EventHandler(this.radRXPreProcessed_CheckedChanged); // // txtWaveOptionsForm // this.txtWaveOptionsForm.Location = new System.Drawing.Point(182, 12); this.txtWaveOptionsForm.Multiline = true; this.txtWaveOptionsForm.Name = "txtWaveOptionsForm"; this.txtWaveOptionsForm.ReadOnly = true; this.txtWaveOptionsForm.Size = new System.Drawing.Size(175, 226); this.txtWaveOptionsForm.TabIndex = 37; this.txtWaveOptionsForm.Text = resources.GetString("txtWaveOptionsForm.Text"); // // grpAudioSampleRate1 // this.grpAudioSampleRate1.Controls.Add(this.comboSampleRate); this.grpAudioSampleRate1.Location = new System.Drawing.Point(8, 182); this.grpAudioSampleRate1.Name = "grpAudioSampleRate1"; this.grpAudioSampleRate1.Size = new System.Drawing.Size(168, 56); this.grpAudioSampleRate1.TabIndex = 36; this.grpAudioSampleRate1.TabStop = false; this.grpAudioSampleRate1.Text = "Wave File Sample Rate"; // // groupBox1 // this.groupBox1.Controls.Add(this.radTXPostProcessed); this.groupBox1.Controls.Add(this.radTXPreProcessed); this.groupBox1.Location = new System.Drawing.Point(8, 96); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(168, 80); this.groupBox1.TabIndex = 1; this.groupBox1.TabStop = false; this.groupBox1.Text = "Transmit"; // // grpReceive // this.grpReceive.Controls.Add(this.radRXPostProcessed); this.grpReceive.Controls.Add(this.radRXPreProcessed); this.grpReceive.Location = new System.Drawing.Point(8, 8); this.grpReceive.Name = "grpReceive"; this.grpReceive.Size = new System.Drawing.Size(168, 80); this.grpReceive.TabIndex = 0; this.grpReceive.TabStop = false; this.grpReceive.Text = "Receive"; // // WaveOptions // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(367, 246); this.Controls.Add(this.txtWaveOptionsForm); this.Controls.Add(this.grpAudioSampleRate1); this.Controls.Add(this.groupBox1); this.Controls.Add(this.grpReceive); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "WaveOptions"; this.Text = "Wave Record Options"; this.Closing += new System.ComponentModel.CancelEventHandler(this.WaveOptions_Closing); this.grpAudioSampleRate1.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.grpReceive.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.labelTS5 = new System.Windows.Forms.LabelTS(); this.comboTXMeter = new System.Windows.Forms.ComboBoxTS(); this.labelTS4 = new System.Windows.Forms.LabelTS(); this.labelTS3 = new System.Windows.Forms.LabelTS(); this.comboRX2Display = new System.Windows.Forms.ComboBoxTS(); this.comboRX1Display = new System.Windows.Forms.ComboBoxTS(); this.labelTS2 = new System.Windows.Forms.LabelTS(); this.comboRX2Meter = new System.Windows.Forms.ComboBoxTS(); this.labelTS1 = new System.Windows.Forms.LabelTS(); this.comboRX1Meter = new System.Windows.Forms.ComboBoxTS(); this.btnClose = new System.Windows.Forms.ButtonTS(); this.SuspendLayout(); // // labelTS5 // this.labelTS5.AutoSize = true; this.labelTS5.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS5.Image = null; this.labelTS5.Location = new System.Drawing.Point(323, 21); this.labelTS5.Name = "labelTS5"; this.labelTS5.Size = new System.Drawing.Size(51, 13); this.labelTS5.TabIndex = 10; this.labelTS5.Text = "TX Meter"; // // comboTXMeter // this.comboTXMeter.FormattingEnabled = true; this.comboTXMeter.Location = new System.Drawing.Point(323, 40); this.comboTXMeter.Name = "comboTXMeter"; this.comboTXMeter.Size = new System.Drawing.Size(121, 21); this.comboTXMeter.TabIndex = 9; this.comboTXMeter.SelectedIndexChanged += new System.EventHandler(this.ComboTXMeter_SelectedIndexChanged); // // labelTS4 // this.labelTS4.AutoSize = true; this.labelTS4.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS4.Image = null; this.labelTS4.Location = new System.Drawing.Point(174, 88); this.labelTS4.Name = "labelTS4"; this.labelTS4.Size = new System.Drawing.Size(95, 13); this.labelTS4.TabIndex = 8; this.labelTS4.Text = "RX2 Display Mode"; // // labelTS3 // this.labelTS3.AutoSize = true; this.labelTS3.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS3.Image = null; this.labelTS3.Location = new System.Drawing.Point(19, 88); this.labelTS3.Name = "labelTS3"; this.labelTS3.Size = new System.Drawing.Size(95, 13); this.labelTS3.TabIndex = 7; this.labelTS3.Text = "RX1 Display Mode"; // // comboRX2Display // this.comboRX2Display.FormattingEnabled = true; this.comboRX2Display.Location = new System.Drawing.Point(174, 107); this.comboRX2Display.Name = "comboRX2Display"; this.comboRX2Display.Size = new System.Drawing.Size(121, 21); this.comboRX2Display.TabIndex = 6; this.comboRX2Display.SelectedIndexChanged += new System.EventHandler(this.ComboRX2Display_SelectedIndexChanged); // // comboRX1Display // this.comboRX1Display.FormattingEnabled = true; this.comboRX1Display.Location = new System.Drawing.Point(19, 107); this.comboRX1Display.Name = "comboRX1Display"; this.comboRX1Display.Size = new System.Drawing.Size(121, 21); this.comboRX1Display.TabIndex = 5; this.comboRX1Display.SelectedIndexChanged += new System.EventHandler(this.ComboRX1Display_SelectedIndexChanged); // // labelTS2 // this.labelTS2.AutoSize = true; this.labelTS2.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS2.Image = null; this.labelTS2.Location = new System.Drawing.Point(174, 21); this.labelTS2.Name = "labelTS2"; this.labelTS2.Size = new System.Drawing.Size(58, 13); this.labelTS2.TabIndex = 4; this.labelTS2.Text = "RX2 Meter"; // // comboRX2Meter // this.comboRX2Meter.FormattingEnabled = true; this.comboRX2Meter.Location = new System.Drawing.Point(174, 40); this.comboRX2Meter.Name = "comboRX2Meter"; this.comboRX2Meter.Size = new System.Drawing.Size(116, 21); this.comboRX2Meter.TabIndex = 3; this.comboRX2Meter.SelectedIndexChanged += new System.EventHandler(this.ComboRX2Meter_SelectedIndexChanged); // // labelTS1 // this.labelTS1.AutoSize = true; this.labelTS1.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS1.Image = null; this.labelTS1.Location = new System.Drawing.Point(19, 21); this.labelTS1.Name = "labelTS1"; this.labelTS1.Size = new System.Drawing.Size(58, 13); this.labelTS1.TabIndex = 2; this.labelTS1.Text = "RX1 Meter"; // // comboRX1Meter // this.comboRX1Meter.FormattingEnabled = true; this.comboRX1Meter.Location = new System.Drawing.Point(19, 40); this.comboRX1Meter.Name = "comboRX1Meter"; this.comboRX1Meter.Size = new System.Drawing.Size(122, 21); this.comboRX1Meter.TabIndex = 1; this.comboRX1Meter.SelectedIndexChanged += new System.EventHandler(this.ComboRX1Meter_SelectedIndexChanged); // // btnClose // this.btnClose.Image = null; this.btnClose.Location = new System.Drawing.Point(326, 97); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(109, 41); this.btnClose.TabIndex = 0; this.btnClose.Text = "Close"; this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += new System.EventHandler(this.BtnClose_Click); // // DisplaySettingsForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))); this.ClientSize = new System.Drawing.Size(454, 157); this.Controls.Add(this.labelTS5); this.Controls.Add(this.comboTXMeter); this.Controls.Add(this.labelTS4); this.Controls.Add(this.labelTS3); this.Controls.Add(this.comboRX2Display); this.Controls.Add(this.comboRX1Display); this.Controls.Add(this.labelTS2); this.Controls.Add(this.comboRX2Meter); this.Controls.Add(this.labelTS1); this.Controls.Add(this.comboRX1Meter); this.Controls.Add(this.btnClose); this.Name = "DisplaySettingsForm"; this.Text = "Display Settings"; this.TopMost = true; this.Activated += new System.EventHandler(this.DisplaySettingsForm_Activated); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.DisplaySettingsForm_FormClosing); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DisplaySettingsForm)); this.labelTS5 = new System.Windows.Forms.LabelTS(); this.comboTXMeter = new System.Windows.Forms.ComboBoxTS(); this.labelTS4 = new System.Windows.Forms.LabelTS(); this.labelTS3 = new System.Windows.Forms.LabelTS(); this.comboRX2Display = new System.Windows.Forms.ComboBoxTS(); this.comboRX1Display = new System.Windows.Forms.ComboBoxTS(); this.labelTS2 = new System.Windows.Forms.LabelTS(); this.comboRX2Meter = new System.Windows.Forms.ComboBoxTS(); this.labelTS1 = new System.Windows.Forms.LabelTS(); this.comboRX1Meter = new System.Windows.Forms.ComboBoxTS(); this.btnClose = new System.Windows.Forms.ButtonTS(); this.chkRX1Avg = new System.Windows.Forms.CheckBoxTS(); this.chkRX1Peak = new System.Windows.Forms.CheckBoxTS(); this.chkRX2Avg = new System.Windows.Forms.CheckBoxTS(); this.chkRX2Peak = new System.Windows.Forms.CheckBoxTS(); this.SuspendLayout(); // // labelTS5 // this.labelTS5.AutoSize = true; this.labelTS5.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS5.Image = null; this.labelTS5.Location = new System.Drawing.Point(323, 21); this.labelTS5.Name = "labelTS5"; this.labelTS5.Size = new System.Drawing.Size(51, 13); this.labelTS5.TabIndex = 10; this.labelTS5.Text = "TX Meter"; // // comboTXMeter // this.comboTXMeter.FormattingEnabled = true; this.comboTXMeter.Location = new System.Drawing.Point(323, 40); this.comboTXMeter.Name = "comboTXMeter"; this.comboTXMeter.Size = new System.Drawing.Size(121, 21); this.comboTXMeter.TabIndex = 9; this.comboTXMeter.SelectedIndexChanged += new System.EventHandler(this.ComboTXMeter_SelectedIndexChanged); // // labelTS4 // this.labelTS4.AutoSize = true; this.labelTS4.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS4.Image = null; this.labelTS4.Location = new System.Drawing.Point(174, 88); this.labelTS4.Name = "labelTS4"; this.labelTS4.Size = new System.Drawing.Size(95, 13); this.labelTS4.TabIndex = 8; this.labelTS4.Text = "RX2 Display Mode"; // // labelTS3 // this.labelTS3.AutoSize = true; this.labelTS3.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS3.Image = null; this.labelTS3.Location = new System.Drawing.Point(19, 88); this.labelTS3.Name = "labelTS3"; this.labelTS3.Size = new System.Drawing.Size(95, 13); this.labelTS3.TabIndex = 7; this.labelTS3.Text = "RX1 Display Mode"; // // comboRX2Display // this.comboRX2Display.FormattingEnabled = true; this.comboRX2Display.Location = new System.Drawing.Point(174, 107); this.comboRX2Display.Name = "comboRX2Display"; this.comboRX2Display.Size = new System.Drawing.Size(121, 21); this.comboRX2Display.TabIndex = 6; this.comboRX2Display.SelectedIndexChanged += new System.EventHandler(this.ComboRX2Display_SelectedIndexChanged); // // comboRX1Display // this.comboRX1Display.FormattingEnabled = true; this.comboRX1Display.Location = new System.Drawing.Point(19, 107); this.comboRX1Display.Name = "comboRX1Display"; this.comboRX1Display.Size = new System.Drawing.Size(121, 21); this.comboRX1Display.TabIndex = 5; this.comboRX1Display.SelectedIndexChanged += new System.EventHandler(this.ComboRX1Display_SelectedIndexChanged); // // labelTS2 // this.labelTS2.AutoSize = true; this.labelTS2.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS2.Image = null; this.labelTS2.Location = new System.Drawing.Point(174, 21); this.labelTS2.Name = "labelTS2"; this.labelTS2.Size = new System.Drawing.Size(58, 13); this.labelTS2.TabIndex = 4; this.labelTS2.Text = "RX2 Meter"; // // comboRX2Meter // this.comboRX2Meter.FormattingEnabled = true; this.comboRX2Meter.Location = new System.Drawing.Point(174, 40); this.comboRX2Meter.Name = "comboRX2Meter"; this.comboRX2Meter.Size = new System.Drawing.Size(116, 21); this.comboRX2Meter.TabIndex = 3; this.comboRX2Meter.SelectedIndexChanged += new System.EventHandler(this.ComboRX2Meter_SelectedIndexChanged); // // labelTS1 // this.labelTS1.AutoSize = true; this.labelTS1.ForeColor = System.Drawing.SystemColors.ControlLight; this.labelTS1.Image = null; this.labelTS1.Location = new System.Drawing.Point(19, 21); this.labelTS1.Name = "labelTS1"; this.labelTS1.Size = new System.Drawing.Size(58, 13); this.labelTS1.TabIndex = 2; this.labelTS1.Text = "RX1 Meter"; // // comboRX1Meter // this.comboRX1Meter.FormattingEnabled = true; this.comboRX1Meter.Location = new System.Drawing.Point(19, 40); this.comboRX1Meter.Name = "comboRX1Meter"; this.comboRX1Meter.Size = new System.Drawing.Size(122, 21); this.comboRX1Meter.TabIndex = 1; this.comboRX1Meter.SelectedIndexChanged += new System.EventHandler(this.ComboRX1Meter_SelectedIndexChanged); // // btnClose // this.btnClose.Image = null; this.btnClose.Location = new System.Drawing.Point(326, 153); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(109, 41); this.btnClose.TabIndex = 0; this.btnClose.Text = "Close"; this.btnClose.UseVisualStyleBackColor = true; this.btnClose.Click += new System.EventHandler(this.BtnClose_Click); // // chkRX1Avg // this.chkRX1Avg.Appearance = System.Windows.Forms.Appearance.Button; this.chkRX1Avg.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter; this.chkRX1Avg.Image = null; this.chkRX1Avg.Location = new System.Drawing.Point(19, 153); this.chkRX1Avg.Name = "chkRX1Avg"; this.chkRX1Avg.Size = new System.Drawing.Size(50, 41); this.chkRX1Avg.TabIndex = 11; this.chkRX1Avg.Text = "Avg"; this.chkRX1Avg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.chkRX1Avg.UseVisualStyleBackColor = true; this.chkRX1Avg.CheckedChanged += new System.EventHandler(this.ChkRX1Avg_CheckedChanged); // // chkRX1Peak // this.chkRX1Peak.Appearance = System.Windows.Forms.Appearance.Button; this.chkRX1Peak.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter; this.chkRX1Peak.Image = null; this.chkRX1Peak.Location = new System.Drawing.Point(90, 153); this.chkRX1Peak.Name = "chkRX1Peak"; this.chkRX1Peak.Size = new System.Drawing.Size(50, 41); this.chkRX1Peak.TabIndex = 12; this.chkRX1Peak.Text = "Peak"; this.chkRX1Peak.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.chkRX1Peak.UseVisualStyleBackColor = true; this.chkRX1Peak.CheckedChanged += new System.EventHandler(this.ChkRX1Peak_CheckedChanged); // // chkRX2Avg // this.chkRX2Avg.Appearance = System.Windows.Forms.Appearance.Button; this.chkRX2Avg.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter; this.chkRX2Avg.Image = null; this.chkRX2Avg.Location = new System.Drawing.Point(174, 153); this.chkRX2Avg.Name = "chkRX2Avg"; this.chkRX2Avg.Size = new System.Drawing.Size(50, 41); this.chkRX2Avg.TabIndex = 13; this.chkRX2Avg.Text = "Avg"; this.chkRX2Avg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.chkRX2Avg.UseVisualStyleBackColor = true; this.chkRX2Avg.CheckedChanged += new System.EventHandler(this.ChkRX2Avg_CheckedChanged); // // chkRX2Peak // this.chkRX2Peak.Appearance = System.Windows.Forms.Appearance.Button; this.chkRX2Peak.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter; this.chkRX2Peak.Image = null; this.chkRX2Peak.Location = new System.Drawing.Point(245, 153); this.chkRX2Peak.Name = "chkRX2Peak"; this.chkRX2Peak.Size = new System.Drawing.Size(50, 41); this.chkRX2Peak.TabIndex = 14; this.chkRX2Peak.Text = "Peak"; this.chkRX2Peak.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.chkRX2Peak.UseVisualStyleBackColor = true; this.chkRX2Peak.CheckedChanged += new System.EventHandler(this.ChkRX2Peak_CheckedChanged); // // DisplaySettingsForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80))))); this.ClientSize = new System.Drawing.Size(454, 204); this.Controls.Add(this.chkRX2Peak); this.Controls.Add(this.chkRX2Avg); this.Controls.Add(this.chkRX1Peak); this.Controls.Add(this.chkRX1Avg); this.Controls.Add(this.labelTS5); this.Controls.Add(this.comboTXMeter); this.Controls.Add(this.labelTS4); this.Controls.Add(this.labelTS3); this.Controls.Add(this.comboRX2Display); this.Controls.Add(this.comboRX1Display); this.Controls.Add(this.labelTS2); this.Controls.Add(this.comboRX2Meter); this.Controls.Add(this.labelTS1); this.Controls.Add(this.comboRX1Meter); this.Controls.Add(this.btnClose); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "DisplaySettingsForm"; this.Text = "Display Settings"; this.TopMost = true; this.Activated += new System.EventHandler(this.DisplaySettingsForm_Activated); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.DisplaySettingsForm_FormClosing); this.ResumeLayout(false); this.PerformLayout(); }