Exemple #1
0
 public void ImportOld(string path)
 {
     if (File.Exists(path))
     {
         OldConfig oldConfig = new OldConfig(path);
         ParityDir    = oldConfig.ParityDir;
         TempDir      = oldConfig.TempDir;
         MaxTempRAM   = oldConfig.MaxTempRAM;
         IgnoreHidden = oldConfig.IgnoreHidden;
         for (int i = 0; i < oldConfig.BackupDirs.Length; i++)
         {
             Drives.Add(new Drive(oldConfig.BackupDirs[i], String.Format("files{0}.dat", i)));
         }
         foreach (string i in oldConfig.Ignores)
         {
             Ignores.Add(i);
         }
         UpdateIgnoresRegex();
         Save();
     }
 }
Exemple #2
0
 public void ImportOld(string path)
 {
     if (File.Exists(path)) {
     OldConfig oldConfig = new OldConfig(path);
     ParityDir = oldConfig.ParityDir;
     TempDir = oldConfig.TempDir;
     MaxTempRAM = oldConfig.MaxTempRAM;
     IgnoreHidden = oldConfig.IgnoreHidden;
     for (int i = 0; i < oldConfig.BackupDirs.Length; i++)
       Drives.Add(new Drive(oldConfig.BackupDirs[i], String.Format("files{0}.dat", i)));
     foreach (string i in oldConfig.Ignores)
       Ignores.Add(i);
     UpdateIgnoresRegex();
     Save();
       }
 }