Пример #1
0
        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
        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);
        }