Exemplo n.º 1
0
 private void RefreshButton_Click(object sender, EventArgs e)
 {
     if (checkBox1.Checked)
     {
         CarTable.DataSource = carLogic.GetAllFreeCars();
     }
     else
     {
         CarTable.DataSource = carLogic.GetAll();
     }
 }
Exemplo n.º 2
0
 public AddContractForm()
 {
     InitializeComponent();
     SpecialistCBox.DataSource = specialistLogic.GetAllFreeSpecialists();
     PaymentCBox.DataSource    = paymentLogic.GetAll();
     CarCBox.DataSource        = carLogic.GetAllFreeCars();
     TimeCBox.DataSource       = new List <TimeSpan>()
     {
         new TimeSpan(1, 00, 00), new TimeSpan(2, 00, 00), new TimeSpan(3, 00, 00), new TimeSpan(4, 00, 00), new TimeSpan(5, 00, 00)
         , new TimeSpan(6, 00, 00), new TimeSpan(7, 00, 00), new TimeSpan(8, 00, 00)
     };
 }