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

            nhomhanghoa.ShowDialog();
        }