private void buttonEdit2_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     // start the config screen for this ADC input
     frmADCInputConfig config = new frmADCInputConfig();
     config.ChannelName = m_appSettings.Adc2channelname;
     config.LowVoltage = m_appSettings.Adc2lowvoltage;
     config.HighVoltage = m_appSettings.Adc2highvoltage;
     config.LowValue = m_appSettings.Adc2lowvalue;
     config.HighValue = m_appSettings.Adc2highvalue;
     config.ShowDialog();
     m_appSettings.Adc2channelname = config.ChannelName;
     m_appSettings.Adc2lowvoltage = config.LowVoltage;
     m_appSettings.Adc2highvoltage = config.HighVoltage;
     m_appSettings.Adc2lowvalue = config.LowValue;
     m_appSettings.Adc2highvalue = config.HighValue;
     buttonEdit2.Text = config.ChannelName;
 }
        private void buttonEdit2_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            // start the config screen for this ADC input
            frmADCInputConfig config = new frmADCInputConfig();

            config.ChannelName = m_appSettings.Adc2channelname;
            config.LowVoltage  = m_appSettings.Adc2lowvoltage;
            config.HighVoltage = m_appSettings.Adc2highvoltage;
            config.LowValue    = m_appSettings.Adc2lowvalue;
            config.HighValue   = m_appSettings.Adc2highvalue;
            config.ShowDialog();
            m_appSettings.Adc2channelname = config.ChannelName;
            m_appSettings.Adc2lowvoltage  = config.LowVoltage;
            m_appSettings.Adc2highvoltage = config.HighVoltage;
            m_appSettings.Adc2lowvalue    = config.LowValue;
            m_appSettings.Adc2highvalue   = config.HighValue;
            buttonEdit2.Text = config.ChannelName;
        }