Esempio n. 1
0
        public OptionsCategory UserDecidesWhatToDoNext()
        {
            DisplayOnlyOptions();
            OptionChosenByUser = DummyConsole.ReadKey().Key;
            DummyConsole.Clear();

            return(ExecutingSpecificOperation());
        }
        private void UserSelectsOptions()
        {
            OptionNumberSelectedByUser = DummyConsole.ReadKey().KeyChar;
            DummyConsole.Clear();

            switch (OptionNumberSelectedByUser)
            {
            case '1': FileCreator.FileCreation(); break;

            case '2': FileContentDisplay.OpenFile(); break;

            case '3': EncoderFile.FileEncryption(); break;

            case '4': EncoderFile.FileDecryption(); break;

            case '5': FileContentDisplay.ReadEncryptedFile(); break;

            case '6': WindowsNotebook.EditFile(); break;
            }
        }
 private void ReadContentsOfFile()
 {
     SetTextFromFile();
     DisplayOnlyFileContents();
     DummyConsole.ReadKey();
 }
Esempio n. 4
0
 private void GetOptionNumber() =>
 OptionNumber = DummyConsole.ReadKey().Key - ConsoleKey.D0;