Exemplo n.º 1
0
 private void fillForm(Vehicle i_Vehicle, SpecificDetailsForm i_DetailsForm)
 {
     fillBasicInformation(i_Vehicle);
     if (i_Vehicle is Car)
     {
         r_UI.GetCarInfo(i_DetailsForm, Car.GetNumbersOfDoors(), Car.GetColors());
     }
     else if (i_Vehicle is Motorcycle)
     {
         r_UI.GetMotorcyacleInfo(i_DetailsForm, Motorcycle.GetLicenseType());
     }
     else if (i_Vehicle is Truck)
     {
         r_UI.GetTruckInfo(i_DetailsForm);
     }
 }