Пример #1
0
 private int LoadNumberOfRecordings()
 {
     if (fileName == "" || fileName == null)
     {
         return(-1);
     }
     using (FileStream fs = File.OpenRead(fileName))
     {
         return(Unpackager.Peak(fs));
     }
 }
Пример #2
0
 public LoadSelection(string path)
 {
     this.path = path;
     error     = "";
     try
     {
         using (FileStream fs = File.OpenRead(path))
         {
             numberRecordings = Unpackager.Peak(fs);
         }
     }
     catch (System.Exception e)
     {
         error            = e.ToString();
         numberRecordings = -1;
     }
 }