Example #1
0
 public void Load(ICozyLoader loader)
 {
     if (Path != null)
     {
         if (File.Exists(Path))
         {
             using (Stream stream = new FileStream(Path, FileMode.Open, FileAccess.Read))
             {
                 loader.Load(stream);
             }
         }
     }
 }
Example #2
0
 public void Load(ICozyLoader loader)
 {
     if(Path != null)
     {
         if(File.Exists(Path))
         {
             using (Stream stream = new FileStream(Path, FileMode.Open, FileAccess.Read))
             {
                 loader.Load(stream);
             }
         }
     }
 }