static void Main(string[] args) { Console.CursorVisible = false; ReadCommandLine(args); //If there is no XML file specified, throw an error. if (string.IsNullOrEmpty(XMLFile)) PrintHelp(1); Console.WriteLine(res.Intro); BackupSystem BS = new BackupSystem(true, Threaded); BS.RegisterPluginDirectory(PluginDir); XmlDocument Doc = new XmlDocument(); Doc.Load(XMLFile); try { BS.PerformBackup(Doc); } catch (BackupTerminationException) { } Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine("Press any key to continue"); Console.ReadKey(); Environment.Exit(0); }
private ConsoleProgressBar(BackupSystem System) : base(System) { Line = Console.CursorTop; Console.SetCursorPosition(0, Line); Console.WriteLine(); Console.WriteLine(); }
public ProgressBar(BackupSystem System) { this.System = System; }