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();
 }
示例#4
0
 public Preferences Clone()
 {
     Preferences prefers = new Preferences();
     Assign(prefers);
     return prefers;
 }
示例#5
0
 public void Assign(Preferences target)
 {
     if (target != null) {
         target.StorageRoot = StorageRoot;
         target.RetentionMode = RetentionMode;
         target.Retention = Retention;
     }
 }