Пример #1
0
 private void tsbtnXuatHang_Click(object sender, EventArgs e)
 {
     if (!IsShow("frmXuatHang"))
     {
         frmXuatHang xuathang = new frmXuatHang();
         xuathang.StartPosition = FormStartPosition.CenterScreen;
         xuathang.MdiParent     = this;
         xuathang.Show();
     }
     else
     {
         foreach (Form frmXuatHang in this.MdiChildren)
         {
             if (frmXuatHang.Name == "frmXuatHang")
             {
                 frmXuatHang.Activate();
                 break;
             }
         }
     }
 }
Пример #2
0
        private void mnuXuatHang_Click(object sender, EventArgs e)
        {
            frmXuatHang xuatHang = new frmXuatHang();

            xuatHang.ShowDialog();
        }