private void btnUpload_Click(object sender, EventArgs e) { if (backgroundWorker1.IsBusy == false) { backgroundWorker1.RunWorkerAsync(); LoadingScreen2 l = new LoadingScreen2(); l.ShowDialog(); } }
private void btnFinalize_Click(object sender, EventArgs e) { if (backgroundWorker1.IsBusy != true) { backgroundWorker1.RunWorkerAsync(); LoadingScreen2 l = new LoadingScreen2(); l.ShowDialog(); } }
private void btnSubmitPullOut_Click(object sender, EventArgs e) { if (backgroundWorker1.IsBusy != true) { Done = 1; backgroundWorker1.RunWorkerAsync(); LoadingScreen2 l = new LoadingScreen2(); l.ShowDialog(); } }
private void btnSubmit_Click(object sender, EventArgs e) { if (backgroundWorker1.IsBusy != true) { backgroundWorker1.RunWorkerAsync(); LoadingScreen2 l = new LoadingScreen2(); l.ShowDialog(); Done = 1; } // t.NewTransaction(DateTime.Now, Action, AdminID); // foreach (DataGridViewRow row in dgvTransaction.Rows) // { // t.NewBorrowed(TransactionID, g.GetGENID(Borrower), Convert.ToInt32(row.Cells[0].Value), DateTime.Now, Convert.ToInt32(row.Cells[2].Value),false,false); // t.BorrowableEditQuantity(Convert.ToInt32(row.Cells[0].Value), g.GetEquipmentBorrowableQuantity(Convert.ToInt32(row.Cells[0].Value)) +Convert.ToInt32(row.Cells[2].Value)); // } // MetroMessageBox.Show(this, "Transaction Complete", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); }