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(); }
private static void ShowProgress(int i, int count) { ViewBase.ClearLine(); Console.Write($"Encrypted {i}/{count}. Please wait..."); }