示例#1
0
        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";
        }
示例#2
0
        public Database(string basePath_)
        {
            log     = new DatabaseLog();
            medBase = new ObservableCollection <Medicine>();

            storageFolder = ApplicationData.Current.LocalFolder;
            this.baseFile = basePath_ + ".txt";
            this.logFile  = basePath_ + ".log";

            Load();
        }