private void newBillToolStripMenuItem1_Click(object sender, EventArgs e) { if (!funcIsFormOpen("retailNewBill")) { try { pleaseWaitForm frmPleaseWait = new pleaseWaitForm(); frmPleaseWait.Show(); Application.DoEvents(); retailNewBill frmRetailNewBill = new retailNewBill(); frmRetailNewBill.MdiParent = this; Cursor.Position = this.PointToScreen(new Point(0, 0)); frmRetailNewBill.Show(); frmPleaseWait.Close(); } catch (Exception ex) { MessageBox.Show("Please Try Again...", "System Busy", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { funcBringToFront("retailNewBill"); } }
private void newBillToolStripMenuItem_Click(object sender, EventArgs e) { if (!funcIsFormOpen("purchaseBill")) { pleaseWaitForm frmPleaseWait = new pleaseWaitForm(); frmPleaseWait.Show(); Application.DoEvents(); purchaseBill frmSupDetails = new purchaseBill(); frmSupDetails.MdiParent = this; frmSupDetails.Show(); frmPleaseWait.Close(); } else { funcBringToFront("purchaseBill"); } }
private void createChallanToolStripMenuItem_Click(object sender, EventArgs e) { if (!funcIsFormOpen("challan")) { pleaseWaitForm frmPleaseWait = new pleaseWaitForm(); frmPleaseWait.Show(); Application.DoEvents(); challan frmChallan = new challan(); frmChallan.MdiParent = this; Cursor.Position = this.PointToScreen(new Point(0, 0)); frmChallan.Show(); frmPleaseWait.Close(); } else { funcBringToFront("challan"); } }