Exemple #1
0
        public MainFrame()
            : base(null, "DummyLoad Controller", WxDefaultPosition, new Size(500, 500))
        {
            _auiManager = new AuiManager(this, AuiManagerOption.Default | AuiManagerOption.VenetianBlindsHint);
            var         auiNotebook      = new AuiNotebook(this, -1, WxDefaultPosition, new Size(100, 100), AuiNotebookOption.DefaultStyle);
            AuiPaneInfo notebookPaneInfo = new AuiPaneInfo
            {
                CloseButtom    = false,
                DockFixed      = true,
                Gripper        = false,
                CaptionVisible = false,
                Direction      = Direction.Top,
                PaneBorder     = false
            };

            notebookPaneInfo.CenterPane();
            _auiManager.AddPane(auiNotebook, notebookPaneInfo);

            _comPanel = new ComPanel(this, _comService);
            AuiPaneInfo comPanelPaneInfo = new AuiPaneInfo
            {
                Direction = Direction.Bottom,
                Caption   = "COM"
            };

            comPanelPaneInfo.Bottom();
            _auiManager.AddPane(_comPanel, comPanelPaneInfo);

            _frontPanel = new FrontPanelPanel(this, _comService);
            auiNotebook.AddPage(_frontPanel, "Front Panel");

            _auiManager.Update();

            InitMenuBar();

            LoadSettings();

            EvtClose((s, e) => { OnClose(); e.Skip(true); });
        }
Exemple #2
0
        public MainFrame()
            : base(null, "DummyLoad Controller", WxDefaultPosition, new Size(500, 500))
        {
            _auiManager = new AuiManager(this, AuiManagerOption.Default | AuiManagerOption.VenetianBlindsHint);
            var auiNotebook = new AuiNotebook(this, -1, WxDefaultPosition, new Size(100, 100), AuiNotebookOption.DefaultStyle);
            AuiPaneInfo notebookPaneInfo = new AuiPaneInfo
            {
                CloseButtom = false,
                DockFixed = true,
                Gripper = false,
                CaptionVisible = false,
                Direction = Direction.Top,
                PaneBorder = false
            };
            notebookPaneInfo.CenterPane();
            _auiManager.AddPane(auiNotebook, notebookPaneInfo);

            _comPanel = new ComPanel(this, _comService);
            AuiPaneInfo comPanelPaneInfo = new AuiPaneInfo
            {
                Direction = Direction.Bottom,
                Caption = "COM"
            };
            comPanelPaneInfo.Bottom();
            _auiManager.AddPane(_comPanel, comPanelPaneInfo);

            _frontPanel = new FrontPanelPanel(this, _comService);
            auiNotebook.AddPage(_frontPanel, "Front Panel");

            _auiManager.Update();

            InitMenuBar();

            LoadSettings();

            EvtClose((s, e) => { OnClose(); e.Skip(true); });
        }