Ejemplo n.º 1
0
 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");
 }
Ejemplo n.º 2
0
 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");
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        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);
            }
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 public void CompanyCost()
 {
     IocStatic.InputMessage(TaxiCompanyEconomic.GetCompanyCost(_carList).ToString());
 }