示例#1
0
 public USBControlDock()
 {
     InitializeComponent();
     SenseUnitsComboBox.SelectedIndex = 0;
     comboBox1.SelectedIndex = 0;
     this.gain = ChannelGain.High;
     HighGainRadioButton.Checked = true;
     LowGainRadioButton.Checked = false;
     BothGainsRadioButton.Checked = false;
 }
示例#2
0
        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);
            }
        }