private void Main_Load(object sender, EventArgs e) { Init(); if (DBConnect() == false) { XtraMessageBox.Show(this, "센터 데이터베이스에 연결되지 않았습니다.", string.Empty); SetupSystem SetupSystem = new SetupSystem(); SetupSystem.ShowDialog(); XtraMessageBox.Show(this, "프로그램을 다시 실행해 주세요.", string.Empty); Application.Exit(); return; } LoadCode(); LoadIcon(); InitForm(); MakeLog("프로그램 시작."); this.Opacity = 100; }
private void btnMainMenu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (e.Item.Equals(btnProgramExit)) { this.Close(); } else if (e.Item.Equals(btnManageCrossCamera)) { ManageCrossCamera ManageCrossCamera = new ManageCrossCamera(); ManageCrossCamera.ShowDialog(this); } else if (e.Item.Equals(btnManageCross)) { ManageCross ManageCross = new ManageCross(); ManageCross.ShowDialog(this); } else if (e.Item.Equals(btnManageUser)) { ManageUser ManageUser = new ManageUser(); ManageUser.ShowDialog(this); } else if (e.Item.Equals(btnManageUserGroup)) { ManageUserGroup ManageUserGroup = new ManageUserGroup(); ManageUserGroup.ShowDialog(this); } else if (e.Item.Equals(btnSetupSystem)) { SetupSystem SetupSystem = new SetupSystem(); SetupSystem.ShowDialog(this); } }