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