private void BtnPhieuNhap_Click(object sender, EventArgs e) { Form frm = this.checkIfExist(typeof(formPhieuNhap)); if (frm != null) { frm.Activate(); } else { formPhieuNhap f = new formPhieuNhap(); f.Show(); } }
private void BtnPhieuNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form frm = this.checkIfExist(typeof(formPhieuNhap)); if (frm != null) { frm.Activate(); } else { formPhieuNhap f = new formPhieuNhap(); // f.MdiParent = this; f.Show(); } }