private void tsNhapDiem_Click_1(object sender, EventArgs e) { if (!CheckExistFrom("frmNhapDiem")) { frmNhapDiem frm = new frmNhapDiem(); frm.MdiParent = this; frm.Show(); } else { ActiveChildForm("frmNhapDiem"); } }
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(); } }