Esempio n. 1
0
 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");
     }
 }
Esempio n. 2
0
 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");
     }
 }
Esempio n. 3
0
 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");
     }
 }