Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="config"></param>
 /// <param name="jobID"></param>
 /// <param name="target"></param>
 /// <returns></returns>
 public string Execute(string config, int jobID, IBackupTarget target)
 {
     using (BackupRunner br = new BackupRunner(FileBackupConfig.Load(config), jobID, target)) {
         int count = br.Run();
         return("{0} files was backed up".FillBlanks(count));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="container"></param>
 /// <param name="config"></param>
 public void InitiateConfiguration(Control container, string config)
 {
     gui = new FileBackupConfigGUI(FileBackupConfig.Load(config));
     container.Controls.Add(gui);
 }