private static void InputMenu() { IocStatic.InputMessage("1.Show"); IocStatic.InputMessage("2.Create "); IocStatic.InputMessage("3.Company cost"); IocStatic.InputMessage("4.Sort by Consumption"); IocStatic.InputMessage("5.Find by speed"); IocStatic.InputMessage("0. Exit"); }
private static void InputMenu() { IocStatic.InputMessage("1.Show"); IocStatic.InputMessage("2.Sort by letter counts"); IocStatic.InputMessage("3.Word of given length"); IocStatic.InputMessage("4.Delete words"); IocStatic.InputMessage("5.Changes"); IocStatic.InputMessage("6.Save in file"); IocStatic.InputMessage("0.Exit"); }
private static void Show <TAutoType>(TAutoType car) where TAutoType : IAuto { IocStatic.InputMessage($"Name: {car.Name}"); IocStatic.InputMessage($"Year: {car.Year}"); IocStatic.InputMessage($"Cost: {car.Cost}"); IocStatic.InputMessage($"State number: {car.StateNumber}"); IocStatic.InputMessage($"VIN number: {car.Vin}"); IocStatic.InputMessage($"Max Speed: {car.MaxSpeed}"); IocStatic.InputMessage($"Consumption: {car.Consumption}"); IocStatic.InputMessage(null); }
public void Find(int length) { var list = _textWorke.FindInQuestion(_text, length); var enumerable = list.ToList(); if (!enumerable.Any()) { IocStatic.InputMessage("words of this lenght not exist"); return; } foreach (var word in enumerable) { IocStatic.InputMessage(word.Chars); } }
public void Show() { var writing = ""; foreach (var sentence in _text.Sentences) { foreach (var sentenceItem in sentence.Items) { writing += sentenceItem.Chars; writing += " "; } writing += '\n'; } IocStatic.InputMessage(writing); }
public void CompanyCost() { IocStatic.InputMessage(TaxiCompanyEconomic.GetCompanyCost(_carList).ToString()); }