示例#1
0
 public void Load()
 {
     xmlAdapter.Load();
     userPassword = xmlAdapter
                    .Data
                    .ToDictionary(o => o.UserName, o => o.Passwrod);
 }
示例#2
0
        public ManagerStoreModel()
        {
            xmlAdapter.XmlPath     = xmlPath;
            xmlAdapter.TableName   = "Record";
            xmlAdapter.DataSetName = "StoreRecords";
            xmlAdapter.Load();

            foreach (StoreRecord record in xmlAdapter.Data)
            {
                records.Add(record);
            }
        }
示例#3
0
        public ManagerStaffModel()
        {
            xmlAdapter.XmlPath     = xmlPath;
            xmlAdapter.TableName   = "Member";
            xmlAdapter.DataSetName = "Staff";
            xmlAdapter.Load();

            // https://stackoverflow.com/questions/5561156/convert-listt-to-observablecollectiont-in-wp7
            foreach (StaffRecord record in xmlAdapter.Data)
            {
                records.Add(record);
            }
        }