public void initiateDisplay(DisplayController dc) { dc.WriteLine(Titel); foreach (string a in Answers) { dc.WriteLine(a); } }
public MenuSearchRegNr(DisplayController dc, GarageController gc) { Titel = "Search By Regnr"; dc.Layer++; dc.WriteLine(Titel); dc.UpdateDisplay(); Console.WriteLine("\n INPUT REGNR: "); string searchString = GetInput(false); if (gc.FindVehicle(searchString.ToUpper()) != null) { new MenuThisVehicle(dc, gc, gc.FindVehicle(searchString.ToUpper())); } else { dc.InfoText = "No car with that RegNr is parked in the garage"; } dc.RemoveLine(); dc.Layer--; dc.UpdateDisplay(); }