public AccountToolbarViewModel(RegionManager regionManager, LoggedUserService loggedUserService, ModuleManager moduleManager, EventAggregator eventAggregator) { _regionManager = regionManager; _loggedUserService = loggedUserService; _moduleManager = moduleManager; _eventAggregator = eventAggregator; _eventAggregator.GetEvent <LoginEvent>().Subscribe(OnLogin); }
public LoginFormViewModel( RegionManager regionManager, LoggedUserService loggedUserService, ModuleManager moduleManager, AuthorizeService authorizeService, EventAggregator eventAggregator) { _regionManager = regionManager; _loggedUserService = loggedUserService; _moduleManager = moduleManager; _authorizeService = authorizeService; _eventAggregator = eventAggregator; }