public static void SaveDatabase(string path, BallanceDatabase data) { var fs = new TdbWriter(path); fs.WriteVirtoolsArray(data.ExportVirtoolsArray()); fs.Close(); }
public static BallanceDatabase ReadDatabase(string path) { var fs = new TdbReader(path); var res = new BallanceDatabase(); res.ImportVirtoolsArray(fs.ReadVirtoolsArray()); fs.Close(); return(res); }