コード例 #1
0
ファイル: MainForm.cs プロジェクト: wangscript007/eibsuite
        public MainForm()
        {
            InitializeComponent();
            this.btnRefresh.Enabled    = false;
            this.btnDisconnect.Enabled = false;

            _LoginDlg = new LoginDlg();
            _LoginDlg.StartPosition = FormStartPosition.CenterParent;

            this.tpUsers.Tag = this.eibUsersControl1;
            this.tpEIBInterfaceConfig.Tag = this.eibInterfaceControl1;
            this.tpBusMonitor.Tag         = this.eibBusMonitorControl1;
            //place the main window in the center screen (when shown)
            this.StartPosition = FormStartPosition.CenterScreen;
            //load event
            this.Shown += new EventHandler(MainForm_Shown);
            //close /exit event
            this.FormClosing += new FormClosingEventHandler(MainForm_FormClosing);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: wlcaption/eibsuite
        public MainForm()
        {
            InitializeComponent();
            this.btnRefresh.Enabled = false;
            this.btnDisconnect.Enabled = false;

            _LoginDlg = new LoginDlg();
            _LoginDlg.StartPosition = FormStartPosition.CenterParent;

            this.tpUsers.Tag = this.eibUsersControl1;
            this.tpEIBInterfaceConfig.Tag = this.eibInterfaceControl1;
            this.tpBusMonitor.Tag = this.eibBusMonitorControl1;
            //place the main window in the center screen (when shown)
            this.StartPosition = FormStartPosition.CenterScreen;
            //load event
            this.Shown += new EventHandler(MainForm_Shown);
            //close /exit event
            this.FormClosing += new FormClosingEventHandler(MainForm_FormClosing);
        }