示例#1
0
        private void MakeFormatSelector()
        {
            CustomLabel lbl = new CustomLabel();

            lbl.Location = new Point(120, 101);
            lbl.Size     = new Size(317, 28);
            lbl.Font     = smallFont;
            lbl.type     = CustomLabel.LabelType.ENGRAVED;
            lbl.Text     = "SELECT AUDIO FORMAT";

            this.Controls.Add(lbl);


            audioFormatSelector                       = new XCombo();
            audioFormatSelector.Location              = new Point(120, 134);
            audioFormatSelector.Size                  = new Size(317, 28);
            audioFormatSelector.Font                  = smallFont;
            audioFormatSelector.SelectedIndexChanged += AudioFormat_SelectedIndexChanged;

            this.Controls.Add(audioFormatSelector);
        }
示例#2
0
        private void MakeInputSelector()
        {
            CustomLabel lbl = new CustomLabel();

            lbl.Location = new Point(120, 20);
            lbl.Size     = new Size(317, 28);
            lbl.Font     = smallFont;
            lbl.type     = CustomLabel.LabelType.ENGRAVED;
            lbl.Text     = "SELECT INPUT SOURCE";

            this.Invoke(new Action(() => this.Controls.Add(lbl)));


            audioInputSelector                       = new XCombo();
            audioInputSelector.Location              = new Point(120, 53);
            audioInputSelector.Size                  = new Size(317, 28);
            audioInputSelector.Font                  = smallFont;
            audioInputSelector.SelectedIndexChanged += AudioInput_SelectedIndexChanged;

            this.Controls.Add(audioInputSelector);


            // INPUT MODE
            lbl          = new CustomLabel();
            lbl.Location = new Point(120, 80);
            lbl.Size     = new Size(50, 20);
            lbl.Font     = smallFont;
            lbl.type     = CustomLabel.LabelType.NORMAL;
            lbl.Text     = "MODE:";
            this.Controls.Add(lbl);

            inputModeButtons.Add(new MocrButton());
            inputModeButtons[0].Font        = tinyFont;
            inputModeButtons[0].buttonStyle = MocrButton.style.TINY_LIGHT;
            inputModeButtons[0].setLightColor(MocrButton.color.BLANK);
            inputModeButtons[0].Text     = "LR";
            inputModeButtons[0].Location = new Point(170, 77);
            inputModeButtons[0].Size     = new Size(32, 20);
            inputModeButtons[0].Click   += (sender, e) => SetInputMode(0);
            this.Controls.Add(inputModeButtons[0]);

            inputModeButtons.Add(new MocrButton());
            inputModeButtons[1].Font        = tinyFont;
            inputModeButtons[1].buttonStyle = MocrButton.style.TINY_LIGHT;
            inputModeButtons[1].setLightColor(MocrButton.color.BLANK);
            inputModeButtons[1].Text     = "LL";
            inputModeButtons[1].Location = new Point(202, 77);
            inputModeButtons[1].Size     = new Size(32, 20);
            inputModeButtons[1].Click   += (sender, e) => SetInputMode(1);
            this.Controls.Add(inputModeButtons[1]);

            inputModeButtons.Add(new MocrButton());
            inputModeButtons[2].Font        = tinyFont;
            inputModeButtons[2].buttonStyle = MocrButton.style.TINY_LIGHT;
            inputModeButtons[2].setLightColor(MocrButton.color.BLANK);
            inputModeButtons[2].Text     = "RR";
            inputModeButtons[2].Location = new Point(234, 77);
            inputModeButtons[2].Size     = new Size(32, 20);
            inputModeButtons[2].Click   += (sender, e) => SetInputMode(2);
            this.Controls.Add(inputModeButtons[2]);

            inputModeButtons.Add(new MocrButton());
            inputModeButtons[3].Font        = tinyFont;
            inputModeButtons[3].buttonStyle = MocrButton.style.TINY_LIGHT;
            inputModeButtons[3].setLightColor(MocrButton.color.BLANK);
            inputModeButtons[3].Text     = "RL";
            inputModeButtons[3].Location = new Point(266, 77);
            inputModeButtons[3].Size     = new Size(32, 20);
            inputModeButtons[3].Click   += (sender, e) => SetInputMode(3);
            this.Controls.Add(inputModeButtons[3]);


            // INPUT GAIN
            lbl          = new CustomLabel();
            lbl.Location = new Point(303, 80);
            lbl.Size     = new Size(50, 20);
            lbl.Font     = smallFont;
            lbl.type     = CustomLabel.LabelType.NORMAL;
            lbl.Text     = "GAIN:";
            this.Controls.Add(lbl);

            inputGainMinus              = new MocrButton();
            inputGainMinus.Location     = new Point(353, 77);
            inputGainMinus.Size         = new Size(25, 20);
            inputGainMinus.buttonStyle  = MocrButton.style.DSKY;
            inputGainMinus.Text         = "-";
            inputGainMinus.Click       += (s, e) => MoveInputGain(-1);
            inputGainMinus.DoubleClick += (s, e) => MoveInputGain(-1);
            this.Controls.Add(inputGainMinus);

            inputGainDisp          = new SegDisp(2, true, "");
            inputGainDisp.Location = new Point(380, 77);
            inputGainDisp.Size     = new Size(30, 20);
            inputGainDisp.setValue(inputGain.ToString());
            this.Controls.Add(inputGainDisp);

            inputGainPlus              = new MocrButton();
            inputGainPlus.Location     = new Point(412, 77);
            inputGainPlus.Size         = new Size(25, 20);
            inputGainPlus.buttonStyle  = MocrButton.style.DSKY;
            inputGainPlus.Text         = "+";
            inputGainPlus.Click       += (s, e) => MoveInputGain(1);
            inputGainPlus.DoubleClick += (s, e) => MoveInputGain(1);
            this.Controls.Add(inputGainPlus);
        }
示例#3
0
        private void MakeOutputSelector()
        {
            CustomLabel lbl = new CustomLabel();

            lbl.Location = new Point(457, 20);
            lbl.Size     = new Size(317, 28);
            lbl.Font     = smallFont;
            lbl.type     = CustomLabel.LabelType.ENGRAVED;
            lbl.Text     = "SELECT OUTPUT SOURCE";
            this.Controls.Add(lbl);

            audioOutputSelector                       = new XCombo();
            audioOutputSelector.Location              = new Point(457, 53);
            audioOutputSelector.Size                  = new Size(317, 28);
            audioOutputSelector.Font                  = smallFont;
            audioOutputSelector.SelectedIndexChanged += AudioOutput_SelectedIndexChanged;
            this.Controls.Add(audioOutputSelector);

            // OUTPUT MODE
            lbl          = new CustomLabel();
            lbl.Location = new Point(457, 80);
            lbl.Size     = new Size(50, 20);
            lbl.Font     = smallFont;
            lbl.type     = CustomLabel.LabelType.NORMAL;
            lbl.Text     = "MODE:";
            this.Controls.Add(lbl);

            outputModeButtons.Add(new MocrButton());
            outputModeButtons[0].Font        = tinyFont;
            outputModeButtons[0].buttonStyle = MocrButton.style.TINY_LIGHT;
            outputModeButtons[0].setLightColor(MocrButton.color.BLANK);
            outputModeButtons[0].Text     = "LR";
            outputModeButtons[0].Location = new Point(507, 77);
            outputModeButtons[0].Size     = new Size(32, 20);
            outputModeButtons[0].Click   += (sender, e) => SetOutputMode(0);
            this.Controls.Add(outputModeButtons[0]);

            outputModeButtons.Add(new MocrButton());
            outputModeButtons[1].Font        = tinyFont;
            outputModeButtons[1].buttonStyle = MocrButton.style.TINY_LIGHT;
            outputModeButtons[1].setLightColor(MocrButton.color.BLANK);
            outputModeButtons[1].Text     = "L";
            outputModeButtons[1].Location = new Point(539, 77);
            outputModeButtons[1].Size     = new Size(32, 20);
            outputModeButtons[1].Click   += (sender, e) => SetOutputMode(1);
            this.Controls.Add(outputModeButtons[1]);

            outputModeButtons.Add(new MocrButton());
            outputModeButtons[2].Font        = tinyFont;
            outputModeButtons[2].buttonStyle = MocrButton.style.TINY_LIGHT;
            outputModeButtons[2].setLightColor(MocrButton.color.BLANK);
            outputModeButtons[2].Text     = "R";
            outputModeButtons[2].Location = new Point(571, 77);
            outputModeButtons[2].Size     = new Size(32, 20);
            outputModeButtons[2].Click   += (sender, e) => SetOutputMode(2);
            this.Controls.Add(outputModeButtons[2]);


            // OUTPUT GAIN
            lbl          = new CustomLabel();
            lbl.Location = new Point(640, 80);
            lbl.Size     = new Size(50, 20);
            lbl.Font     = smallFont;
            lbl.type     = CustomLabel.LabelType.NORMAL;
            lbl.Text     = "GAIN:";
            this.Controls.Add(lbl);

            outputGainMinus              = new MocrButton();
            outputGainMinus.Location     = new Point(690, 77);
            outputGainMinus.Size         = new Size(25, 20);
            outputGainMinus.buttonStyle  = MocrButton.style.DSKY;
            outputGainMinus.Text         = "-";
            outputGainMinus.Click       += (s, e) => MoveOutputGain(-1);
            outputGainMinus.DoubleClick += (s, e) => MoveOutputGain(-1);
            this.Controls.Add(outputGainMinus);

            outputGainDisp          = new SegDisp(2, true, "");
            outputGainDisp.Location = new Point(717, 77);
            outputGainDisp.Size     = new Size(30, 20);
            outputGainDisp.setValue(outputGain.ToString());
            this.Controls.Add(outputGainDisp);

            outputGainPlus              = new MocrButton();
            outputGainPlus.Location     = new Point(749, 77);
            outputGainPlus.Size         = new Size(25, 20);
            outputGainPlus.buttonStyle  = MocrButton.style.DSKY;
            outputGainPlus.Text         = "+";
            outputGainPlus.Click       += (s, e) => MoveOutputGain(1);
            outputGainPlus.DoubleClick += (s, e) => MoveOutputGain(1);
            this.Controls.Add(outputGainPlus);
        }