Exemple #1
0
 private void FillListBoxVehiclesOrderedByCapacity()
 {
     try
     {
         IVehicleLogic vehicleOperations = Provider.GetInstance.GetVehicleOperations();
         var           vehicles          = vehicleOperations.GetVehiclesOrderedByCapacityConsideringStudentsNumber();
         for (int index = 0; index < vehicles.Count; index++)
         {
             this.listBoxVehiclesOrderedByEfficiency.Items.Add(vehicles[index]);
         }
     }
     catch (CoreException ex)
     {
         this.labelError.Text    = ex.Message;
         this.labelError.Visible = true;
     }
 }