Beispiel #1
0
        private void HandleNoBackupFile()
        {
            var yes = new MenuOption {
                IsSelected = true, Text = "Yes"
            };
            var no = new MenuOption {
                Text = "No"
            };

            Logger.Warn("Could not find any backup file!");

            Console.ForegroundColor = ConsoleColor.DarkYellow;
            Console.WriteLine("Could not find any backup file!");
            Console.ForegroundColor = ForegroundColor;
            Console.WriteLine();
            Console.WriteLine("Would you like to reset all configuration values possibly changed by SEB?");

            ShowMenu(new List <MenuOption> {
                yes, no
            });

            if (yes.IsSelected)
            {
                next = new Reset(Context);
            }

            Logger.Info($"The user chose {(yes.IsSelected ? "" : "not ")}to perform a reset.");
        }
Beispiel #2
0
 public Restore(ProcedureContext context) : base(context)
 {
     next = new MainMenu(Context);
 }