private void barButtonItem13_ItemClick(object sender, ItemClickEventArgs e) { opentab = 1; PurchaseRequestList frm = null; if ((frm = (PurchaseRequestList)IsFormAlreadyOpen(typeof(PurchaseRequestList))) == null) { frm = new PurchaseRequestList(); frm.LoadPurchaseData(); frm.MdiParent = this; frm.Show(); } else { frm.Select(); } }
private void toolStripButton3_Click(object sender, EventArgs e) { var pur = new PurchaseRequestList(); pur.LoadPurchaseData(Utils.Company); pur.ShowDialog(); }