Esempio n. 1
0
 private void tsbtnDangKy_Click(object sender, EventArgs e)
 {
     if (!IsShow("frmDangKy"))
     {
         frmDangKy dangky = new frmDangKy();
         dangky.StartPosition = FormStartPosition.CenterScreen;
         dangky.MdiParent     = this;
         dangky.Show();
     }
     else
     {
         foreach (Form frmDangKy in this.MdiChildren)
         {
             if (frmDangKy.Name == "frmDangKy")
             {
                 frmDangKy.Activate();
                 break;
             }
         }
     }
 }
Esempio n. 2
0
        private void mnuDangKy_Click(object sender, EventArgs e)
        {
            frmDangKy dangky = new frmDangKy();

            dangky.ShowDialog();
        }