private void mnuUserProfileList_Click(object sender, EventArgs e) { if (Program.CurrentUser.IsAdministrator == false) { MessageBox.Show("Bạn không được phép sử dụng chức năng này", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } if (frmUserProfileList.CurrentInstance != null) { frmUserProfileList.CurrentInstance.Close(); frmUserProfileList.CurrentInstance.Dispose(); } frmUserProfileList ofrm = frmUserProfileList.CurrentInstance; ofrm.MdiParent = this; ofrm.Show(); }
public frmUserProfileList() { InitializeComponent(); m_CurrentInstance = this; }