public void Execute(System.Data.DataRow drMenu) { int menuID = Int32.Parse(drMenu["MenuPluginID"].ToString()); if (_lstInfo[0].CType == ICType.Custom && _lstInfo[0].MenuID == menuID) { Form main = null; foreach (Form fr in Application.OpenForms) { if (fr.IsMdiContainer) { main = fr; } } frmHVBL frm = new frmHVBL(); frm.Text = drMenu["MenuName"].ToString(); if (main == null) { frm.WindowState = System.Windows.Forms.FormWindowState.Normal; frm.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; frm.ShowDialog(); } else { frm.MdiParent = main; frm.Show(); } } }
public void Execute(System.Data.DataRow drMenu) { int menuID = Int32.Parse(drMenu["MenuPluginID"].ToString()); if (_lstInfo[0].CType == ICType.Custom && _lstInfo[0].MenuID == menuID) { frmHVBL frm = new frmHVBL(); frm.Text = "Danh sách học viên"; frm.ShowDialog(); } }