private void RefreshButton_Click(object sender, EventArgs e) { if (checkBox1.Checked) { CarTable.DataSource = carLogic.GetAllFreeCars(); } else { CarTable.DataSource = carLogic.GetAll(); } }
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) }; }