Example #1
0
 private void tsbtnQuanLyHangHoa_Click(object sender, EventArgs e)
 {
     if (!IsShow("frmQuanLyHangHoa"))
     {
         frmQuanLyHangHoa hanghoa = new frmQuanLyHangHoa();
         hanghoa.StartPosition = FormStartPosition.CenterScreen;
         hanghoa.MdiParent     = this;
         hanghoa.Show();
     }
     else
     {
         foreach (Form frmQuanLyHangHoa in this.MdiChildren)
         {
             if (frmQuanLyHangHoa.Name == "frmNhomHangHoa")
             {
                 frmQuanLyHangHoa.Activate();
                 break;
             }
         }
     }
 }
Example #2
0
        private void mnuQLHangHoa_Click(object sender, EventArgs e)
        {
            frmQuanLyHangHoa quanlyhanghoa = new frmQuanLyHangHoa();

            quanlyhanghoa.ShowDialog();
        }