private int LoadNumberOfRecordings() { if (fileName == "" || fileName == null) { return(-1); } using (FileStream fs = File.OpenRead(fileName)) { return(Unpackager.Peak(fs)); } }
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; } }