public USBControlDock() { InitializeComponent(); SenseUnitsComboBox.SelectedIndex = 0; comboBox1.SelectedIndex = 0; this.gain = ChannelGain.High; HighGainRadioButton.Checked = true; LowGainRadioButton.Checked = false; BothGainsRadioButton.Checked = false; }
private void GainRadioButton_CheckedChanged(object sender, EventArgs e) { if(HighGainRadioButton.Checked) { this.gain = ChannelGain.High; } else if (LowGainRadioButton.Checked) { this.gain = ChannelGain.Low; } else { this.gain = ChannelGain.Both; } if (Controller != null) { this.Controller.UpdateUSBGraphGainView(gain); } }