Пример #1
0
 private void tsNhapDiem_Click_1(object sender, EventArgs e)
 {
     if (!CheckExistFrom("frmNhapDiem"))
     {
         frmNhapDiem frm = new frmNhapDiem();
         frm.MdiParent = this;
         frm.Show();
     }
     else
     {
         ActiveChildForm("frmNhapDiem");
     }
 }
Пример #2
0
        private void btnNhapDiem_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = this.CheckExists(typeof(frmNhapDiem));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmNhapDiem f = new frmNhapDiem();
                f.MdiParent = this;
                f.Show();
            }
        }