Inheritance: StorageRepositoryDelegate, IProfile
示例#1
0
        public IProfile Add(ProfileCreationArgs profileCreationArgs)
        {
            ProfileDomainObject newProfile = ProfileRepository.Add(profileCreationArgs, _accountName);

            Profiles.Add(newProfile.Name, newProfile);
            RaiseProfileCollectionChanged();
            return(newProfile);
        }
 public ProfileDomainObject(ProfileDomainObject other) : base(other)
 {
     _profileName         = other._profileName;
     _accountName         = other._accountName;
     _profileSettingsType = other._profileSettingsType;
     Initialized          = other.Initialized;
     _settings            = null;
     EventAggregator      = other.EventAggregator;
     ProfileRepository    = other.ProfileRepository;
 }
		public ProfileDomainObject(ProfileDomainObject other):base(other)
		{
			_profileName = other._profileName;
			_accountName = other._accountName;
			_profileSettingsType = other._profileSettingsType;
			Initialized = other.Initialized;
			_settings = null;
			EventAggregator = other.EventAggregator;
			ProfileRepository = other.ProfileRepository;
		}
		public void Update(ProfileDomainObject profile, AccountName accountName)
		{
			var profileUpdated = _profilePersister.Update(profile.Name, profile.Initialized, accountName);
			SaveSettings(profile.Settings, profileUpdated);
		}