예제 #1
0
 protected void AddWheelsInstructions(int i_NumberOfWheels, float i_WheelsMaxPressure)
 {
     m_WheelsMaxPressure = i_WheelsMaxPressure;
     SubMenuInstructions.Add("Please enter wheels manufacturer name", insertWheelsManufacturerName);
     for (int i = 1; i <= i_NumberOfWheels; i++)
     {
         SubMenuInstructions.Add("Please enter current wheel pressure between 0 to " + i_WheelsMaxPressure + " for wheel number " + i, insertWheelCurrentPressure);
     }
 }
예제 #2
0
 private void addColorInstruction()
 {
     SubMenuInstructions.Add(
         "Please enter 1 for" + eColor.Gray + " color\n" +
         "Please enter 2 for" + eColor.Blue + " color\n" +
         "Please enter 3 for" + eColor.White + " color\n" +
         "Please enter 4 for" + eColor.Black + " color",
         insertCarColor);
 }
예제 #3
0
 private void addLicenseTypeInstruction()
 {
     SubMenuInstructions.Add(
         "Please enter 1 for " + eLicenseType.A + " license\n" +
         "Please enter 2 for " + eLicenseType.A1 + " license\n" +
         "Please enter 3 for " + eLicenseType.B1 + " license\n" +
         "Please enter 4 for " + eLicenseType.B2 + " license",
         insertLicenseType);
 }
예제 #4
0
 private void addDoorsNumberInstruction()
 {
     SubMenuInstructions.Add("Please enter car number of doors (2 - 5)", insertCarDoorsNumber);
 }
예제 #5
0
 private void addCarryingHazardousMaterialsInstruction()
 {
     SubMenuInstructions.Add("Please enter maximum carrying weight is allowed", insertMaximumCarryingWeightAllowed);
     SubMenuInstructions.Add("Please enter Yes or No if the truck is carrying hazardous materials", insertIfCarryingHazardousMaterials);
 }
예제 #6
0
 private void addEngineVolumeIntruction()
 {
     SubMenuInstructions.Add("Please enter engine volume in cc", insertCarEngineVolume);
 }