Esempio n. 1
0
        static void Main(string[] args)
        {
            ViewBase.ShowWelcome();

            var logIn = account.LogIn();

            do
            {
                if (logIn)
                {
                    var commands = account.GetCommand();

                    mainController.Start(commands);
                }
                else
                {
                    logIn = account.LogIn();
                }

                ViewBase.ShowMessageAfterLogIn(logIn);

                key = consoleKey.ReadKey(true).Key;
                ViewBase.ClearLine();
            } while (key == ConsoleKey.Enter);

            ViewBase.LogOutSuccess();
        }
Esempio n. 2
0
 private static void ShowProgress(int i, int count)
 {
     ViewBase.ClearLine();
     Console.Write($"Encrypted {i}/{count}. Please wait...");
 }