Пример #1
0
 private void Bt_rueckgabe_Click(object sender, EventArgs e)
 {
     if (rueckListe.Count != 0)
     {
         FormReturn formReturn = new FormReturn(rueckListe.ToArray());
         styleManagerOverview.Clone(formReturn);
         loadEnabled = false;
         formReturn.ShowDialog(this);
         loadEnabled = true;
         formReturn.Dispose();
         lbListElements.Text = "";
         rueckListe.Clear();
         ausleihlisteToolStripMenuItem.Enabled = true;
         if (!workerMain.IsBusy)
         {
             workerMain.RunWorkerAsync();
         }
     }
     else
     {
         FormReturn formReturn = new FormReturn();
         loadEnabled = false;
         formReturn.ShowDialog(this);
         loadEnabled = true;
         formReturn.Dispose();
         if (!workerMain.IsBusy)
         {
             workerMain.RunWorkerAsync();
         }
     }
 }
Пример #2
0
        private void btReturnClick(object sender, EventArgs e)
        {
            if (!IsConnected())
            {
                return;
            }
            FormReturn formReturn = new FormReturn();

            formReturn.ShowDialog(this);
            formReturn.Dispose();
        }
Пример #3
0
        private void ExemplarZurückgebenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string[] rueck = new string[1];
            rueck[0] = gridOverview.SelectedRows[0].Cells["ExemplarID"].Value.ToString();
            FormReturn formReturn = new FormReturn(rueck);

            loadEnabled = false;
            formReturn.ShowDialog(this);
            loadEnabled = true;
            formReturn.Dispose();
            if (!workerMain.IsBusy)
            {
                workerMain.RunWorkerAsync();
            }
        }
Пример #4
0
        private void ZurueckgebenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormReturn formReturn = new FormReturn(rueckListe.ToArray());

            loadEnabled = false;
            formReturn.ShowDialog(this);
            loadEnabled = true;
            formReturn.Dispose();
            rueckListe.Clear();
            lbListElements.Text = "";
            ausleihlisteToolStripMenuItem.Enabled = true;
            if (!workerMain.IsBusy)
            {
                workerMain.RunWorkerAsync();
            }
        }