private void Ausleihvorgang(object sender, EventArgs e) { if (leihListe.Count != 0) { FormBorrow formBorrowing = new FormBorrow(leihListe.ToArray()); loadEnabled = false; formBorrowing.ShowDialog(this); loadEnabled = true; formBorrowing.Dispose(); lbListElements.Text = ""; leihListe.Clear(); rueckgabelisteToolStripMenuItem.Enabled = true; if (!workerMain.IsBusy) { workerMain.RunWorkerAsync(); } } else { FormBorrow formBorrowing = new FormBorrow(); loadEnabled = false; formBorrowing.ShowDialog(this); loadEnabled = true; formBorrowing.Dispose(); if (!workerMain.IsBusy) { workerMain.RunWorkerAsync(); } } }
private void btBorrowingClick(object sender, EventArgs e) { if (!IsConnected()) { return; } FormBorrow formBorrowing = new FormBorrow(); formBorrowing.ShowDialog(this); formBorrowing.Dispose(); }
private void ausleihen_Click(object sender, EventArgs e) { string[] borrow = new string[1]; borrow[0] = gridOverview.SelectedRows[0].Cells["ExemplarID"].Value.ToString(); FormBorrow formBorrowing = new FormBorrow(borrow); loadEnabled = false; formBorrowing.ShowDialog(this); loadEnabled = true; formBorrowing.Dispose(); if (!workerMain.IsBusy) { workerMain.RunWorkerAsync(); } }
private void LeihlisteAusleihenToolStripMenuItem_Click(object sender, EventArgs e) { string[] borrow = leihListe.ToArray(); FormBorrow formBorrowing = new FormBorrow(borrow); loadEnabled = false; formBorrowing.ShowDialog(this); loadEnabled = true; formBorrowing.Dispose(); leihListe.Clear(); lbListElements.Text = ""; rueckgabelisteToolStripMenuItem.Enabled = true; if (!workerMain.IsBusy) { workerMain.RunWorkerAsync(); } }