Esempio n. 1
0
        public UI()
        {
            InitializeComponent();

            Ctrl = new UIController(this);
            VUMeters = new List<VUMeter>();
            VULabels = new List<Label>();

            InputView = new InputView();
            SignalView = new SignalView();
            OutputView = new OutputView();

            Controls.Add(InputView);
            Controls.Add(SignalView);
            Controls.Add(OutputView);

            InputView.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
            SignalView.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
            OutputView.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;

            InputView.Top = 80;
            InputView.Left = 15;
            InputView.Width = ClientSize.Width - 2*15;
            InputView.Height = ClientSize.Height - 80 - 30 - panelMeters.Height;
            InputView.Visible = true;
            InputView.Hide();

            SignalView.Top = 80;
            SignalView.Left = 15;
            SignalView.Width = ClientSize.Width - 2 * 15;
            SignalView.Height = ClientSize.Height - 80 - 30 - panelMeters.Height;
            SignalView.Visible = true;
            SignalView.Hide();

            OutputView.Top = 80;
            OutputView.Left = 15;
            OutputView.Width = ClientSize.Width - 2 * 15;
            OutputView.Height = ClientSize.Height - 80 - 30 - panelMeters.Height;
            OutputView.Visible = true;
            OutputView.Hide();

            ChangePage(LabelInputs, null);
        }
Esempio n. 2
0
 public OutputController(OutputView form)
 {
     this.ui = form;
     OutputPorts = new List<OutputPort>();
 }