public MainPageViewModel(INavigationService navigationService, IContext ctx, IEventAgregator eventAggregator) : base(navigationService) { _ctx = ctx; _eventAggregator = eventAggregator; Title = "Main Page"; GameNavigationCommand = new DelegateCommand <Game>(Navigate); _eventAggregator.Subscribe <GameChangedEvent>(RefreshGames); RefreshGames(); }
public OnlyMouseView(IEventAgregator eventAgregator) { eventAgregator.Subscribe(this); }
public View(IEventAgregator eventAgregator) { eventAgregator.Subscribe(this); }