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