private void quảnLýMỹPhẩmToolStripMenuItem1_Click(object sender, EventArgs e) { MyPham mp = new MyPham(); if (KiemTraTonTai("MyPham") == true) { mp.Activate(); } else { mp.MdiParent = this; mp.Show(); } }
private void btnThongKe_Click(object sender, EventArgs e) { MyPham tk = new MyPham(); if (KiemTraTonTai("MyPham") == true) { tk.Activate(); } else { tk.MdiParent = this; tk.Show(); } }