Example #1
0
        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();
        }
Example #2
0
 public OnlyMouseView(IEventAgregator eventAgregator)
 {
     eventAgregator.Subscribe(this);
 }
Example #3
0
 public View(IEventAgregator eventAgregator)
 {
     eventAgregator.Subscribe(this);
 }