Esempio n. 1
0
 /// <summary>
 /// Restores queue state from json file
 /// </summary>
 /// <param name="filePath">Source file path</param>
 public void LoadFrom(string filePath)
 {
     if (System.IO.File.Exists(filePath))
     {
         string    json = System.IO.File.ReadAllText(filePath);
         FileStore fs   = FileStore.FromJson(json);
         _jobs = fs.Jobs;
         _seq  = fs.Sequence;
     }
 }