Beispiel #1
0
 public void Load(string path)
 {
     // deserialize JSON directly from a file
     using (var file = File.OpenText(path))
     {
         var serializer = new JsonSerializer();
         Manifest      = (Manifest)serializer.Deserialize(file, typeof(Manifest));
         _manifestPath = path;
         OnManifestLoaded?.Invoke(this, EventArgs.Empty);
     }
 }
Beispiel #2
0
 public void New()
 {
     Manifest = new Manifest();
     OnManifestLoaded?.Invoke(this, EventArgs.Empty);
     Dirty = true;
 }