Exemplo n.º 1
0
 /// <summary>
 /// Initializes an instance of <see cref="SettingsViewModel"/>.
 /// </summary>
 /// <param name="messagingService">An implementation of <see cref="IMessagingService"/>.</param>
 /// <param name="userRepository"> </param>
 public SettingsViewModel(IMessagingService messagingService, IUserRepository userRepository)
 {
     if (null == messagingService)
     {
         throw new ArgumentNullException("messagingService");
     }
     if (userRepository == null)
     {
         throw new ArgumentNullException("userRepository");
     }
     _messagingService = messagingService;
     _userRepository   = userRepository;
     AccentColorlist   = new List <string>(AppearanceManager.GetAccentNames());
     ThemeColorlist    = new List <string>(AppearanceManager.GetThemeNames());
     _selectedAccent   = AppearanceManager.GetApplicationAccent();
     _selectedTheme    = AppearanceManager.GetApplicationTheme();
     //Initialize commands
     ChangePasswordCommand = new RelayCommand(ChangePassword, CanChangePassword);
 }