예제 #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");
 }
예제 #2
0
파일: UI.cs 프로젝트: deviol0/dotNETCourses
 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");
 }
예제 #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);
 }
예제 #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);
            }
        }
예제 #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);
        }
예제 #6
0
 public void CompanyCost()
 {
     IocStatic.InputMessage(TaxiCompanyEconomic.GetCompanyCost(_carList).ToString());
 }