public Database(string name_, string folderPath_) { log = new DatabaseLog(); medBase = new ObservableCollection <Medicine>(); this.Name = name_; storageFolder = ApplicationData.Current.LocalFolder; this.baseFile = folderPath_ + @"\" + name_ + ".txt"; this.logFile = folderPath_ + @"\" + name_ + ".log"; }
public Database(string basePath_) { log = new DatabaseLog(); medBase = new ObservableCollection <Medicine>(); storageFolder = ApplicationData.Current.LocalFolder; this.baseFile = basePath_ + ".txt"; this.logFile = basePath_ + ".log"; Load(); }