//通过输入控件修改相机的模拟增益值
        private void trackBar_AnalogGain_Scroll(object sender, EventArgs e)
        {
            if (this.ActiveControl != sender)
            {
                return;
            }

            int iGain = trackBar_AnalogGain.Value;

            textBox_AnalogGain.Text = iGain.ToString();

            MvApi.CameraSetAnalogGain(m_hCamera, iGain);
        }
        //通过滚动条修改相机的模拟增益值
        private void textBox_AnalogGain_TextChanged(object sender, EventArgs e)
        {
            if (this.ActiveControl != sender)
            {
                return;
            }

            if (textBox_AnalogGain.Text == "")
            {
                return;
            }

            int iGain = System.Convert.ToInt32(textBox_AnalogGain.Text);

            trackBar_AnalogGain.Value = iGain;

            MvApi.CameraSetAnalogGain(m_hCamera, iGain);
        }