private void barBtnPrintBill_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmPrintBill frm = new frmPrintBill(); frm.MdiParent = this; frm.Show(); }
private void barBtnPrintBill_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { foreach (Form item in this.MdiChildren) { if (item.Name == "frmPrintBill") { item.Dispose(); break; } } frmPrintBill frm = new frmPrintBill(); frm.MdiParent = this; frm.Show(); }