コード例 #1
0
        public FlexControlBasicForm(Console c)
        {
            InitializeComponent();
            console = c;

            // setup the actual FlexControl Interface
            fc_interface = new FlexControlInterface2(c);

            // populate knob combobox controls
            foreach (FlexControlKnobFunction function in Enum.GetValues(typeof(FlexControlKnobFunction)))
            {
                string s = KnobFunction2String(function);
                comboButtonLeft.Items.Add(s);
                comboButtonMid.Items.Add(s);
                comboButtonRight.Items.Add(s);
                comboButtonKnob.Items.Add(s);
            }

            // setup defaults
            comboButtonLeft.Text = "Tune RIT";
            comboButtonMid.Text = "Audio Gain";
            comboButtonRight.Text = "Tune VFO B";
            comboButtonKnob.Text = "Tune VFO A";            

            // restore any saved configuration
            Common.RestoreForm(this, "FlexControlBasicForm", false);            
        }
コード例 #2
0
        public FlexControlBasicForm(Console c)
        {
            InitializeComponent();
            console = c;

            // setup the actual FlexControl Interface
            fc_interface = new FlexControlInterface2(c);

            // populate knob combobox controls
            foreach (FlexControlKnobFunction function in Enum.GetValues(typeof(FlexControlKnobFunction)))
            {
                string s = KnobFunction2String(function);
                comboButtonLeft.Items.Add(s);
                comboButtonMid.Items.Add(s);
                comboButtonRight.Items.Add(s);
                comboButtonKnob.Items.Add(s);
            }

            // setup defaults
            comboButtonLeft.Text  = "Tune RIT";
            comboButtonMid.Text   = "Audio Gain";
            comboButtonRight.Text = "Tune VFO B";
            comboButtonKnob.Text  = "Tune VFO A";

            // restore any saved configuration
            Common.RestoreForm(this, "FlexControlBasicForm", false);
        }