public void Load() { xmlAdapter.Load(); userPassword = xmlAdapter .Data .ToDictionary(o => o.UserName, o => o.Passwrod); }
public ManagerStoreModel() { xmlAdapter.XmlPath = xmlPath; xmlAdapter.TableName = "Record"; xmlAdapter.DataSetName = "StoreRecords"; xmlAdapter.Load(); foreach (StoreRecord record in xmlAdapter.Data) { records.Add(record); } }
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); } }