private void DisplayMenu()
 {
     _inputOutput.Clear();
     _inputOutput.WriteLine("Select mode:");
     _inputOutput.WriteLine("1) Display negative words count");
     _inputOutput.WriteLine("2) Filter negative words");
     _inputOutput.WriteLine("3) Display original text");
     _inputOutput.WriteLine("Any other - exit");
 }
Пример #2
0
        public void PrintHeader()
        {
            io.Clear(start, (start.x + whidth, start.y + height));

            io.CursorPosition = start;
            io.Print(page.Header + Environment.NewLine);
        }
Пример #3
0
        public IApplicationState PlayAgain()
        {
            _io.WriteLine(Settings.Default.PlayAgainQuestion);
            var result = PlayAgain(_io.ReadLine());

            _io.Clear();

            if (result)
            {
                return(new ApplicationStatePlay(_dockingSystem, _io, _printOptions));
            }

            return(new ApplicationStateStop());
        }
Пример #4
0
 private void ClearTerminal() => io.Clear(start, (start.x + whidth, start.y + height));