public new static DialogResult Show() { frmAddConnection frm = new frmAddConnection { TopMost = true }; return(frm.ShowDialog()); }
private void btnCauHinhCSDL_ItemClick(object sender, ItemClickEventArgs e) { try { frmAddConnection frm = new frmAddConnection(); if (frm.ShowDialog() == DialogResult.OK) { StaticClass.Log.GhiFile("Cấu hình kết nối CSDL"); if (xtraTabControl1.TabPages.Count > 0) { MsgboxUtil.Info("Chương trình sẽ đóng tất cả trang hiện tại để cấu hình CSDL"); xtraTabControl1.TabPages.Clear(); } } } catch (Exception ex) { ExceptionUtil.ThrowMsgBox(ex.Message); return; } }