public void LoadTest() { Preferences target = new Preferences(); string path = "preferences.xml"; target.Load(path); target.Save(path); }
public PreferencesViewModel() { m_prefers = PersonalDomain.Domain.Preferences.Clone(); StorageCommand = new DelegateCommand(DoStorage, CanStorage); IsCancelable = true; }
private PersonalDomain() { m_preferences = new Preferences(); m_vehicles = new VehicleManager(); m_repository = new LocalRepository(); }
public Preferences Clone() { Preferences prefers = new Preferences(); Assign(prefers); return prefers; }
public void Assign(Preferences target) { if (target != null) { target.StorageRoot = StorageRoot; target.RetentionMode = RetentionMode; target.Retention = Retention; } }