Beispiel #1
0
 public static ClothFile Load(string path)
 {
     try
     {
         FileStream fs = new FileStream(path, FileMode.Open);
         ClothFile  cf = Load(fs);
         fs.Close();
         return(cf);
     }
     catch
     {
         return(null);
     }
 }
Beispiel #2
0
 public static ClothFile Load(byte[] rawData)
 {
     try
     {
         ClothFile file = new ClothFile
         {
             RawData = rawData
         };
         return(file);
     }
     catch
     {
         return(null);
     }
 }