public void addCity() { displayInfoEntities(cityList, "Список міст"); cityList.Add(new City()); cityList.Last().Name = HelperIO.stringInput("Введіть назву міста"); cityMenu(); }
public void addCrew() { displayInfoEntities(crewList, "Список екіпажів"); crewList.Add(new Crew()); crewList.Last().CarNumber = HelperIO.stringInput("Введіть номер авто"); crewList.Last().DriverName = HelperIO.stringInput("Введіть ПІБ водія"); crewList.Last().LoadCapacity = HelperIO.intAbsInput("Введіть вантажопідйомність авто"); addRoute(crewList.Last().Id); menu(); }