public void ScanNewVehicleStatus(out AutomobileRepairShop.eVehicleStatus i_NewStatus) { int vehicalStatusNumber; const int userMenueNumberOptions = 3; string input; string statusMenu = string.Format(@"Please select the new status 1.In repair 2.Repaired 3.Paied"); System.Console.WriteLine(statusMenu); input = System.Console.ReadLine(); checkUserSelection(input, userMenueNumberOptions); vehicalStatusNumber = int.Parse(input); i_NewStatus = (AutomobileRepairShop.eVehicleStatus)vehicalStatusNumber; }
public void UpdateStatus(string i_LicensePlate, AutomobileRepairShop.eVehicleStatus i_Status) { m_ManageGarageDictionary[i_LicensePlate].VehicleStatus = i_Status; }