예제 #1
0
        public ShellViewModel(IEventMessager eventMessager)
        {
            Title = "Big XAML Apps Demo";
            ShowSpotTileCommand = new SimpleCommand<object, object>(x => eventMessager.Publish(new ShowNewSpotTileMessage()));
            SpotTrades = new ObservableCollection<SpotTrade>();

            eventMessager.Observe<SpotTrade>()
                .Subscribe(x =>
                {
                    this.SpotTrades.Add(x);
                    base.RaisePropertyChanged(()=>SpotTrades);
                });
        }
        public ShellViewModel(IEventMessager eventMessager)
        {
            Title = "Big XAML Apps Demo";
            ShowSpotTileCommand = new SimpleCommand <object, object>(x => eventMessager.Publish(new ShowNewSpotTileMessage()));
            SpotTrades          = new ObservableCollection <SpotTrade>();

            eventMessager.Observe <SpotTrade>()
            .Subscribe(x =>
            {
                this.SpotTrades.Add(x);
                base.RaisePropertyChanged(() => SpotTrades);
            });
        }
예제 #3
0
        public DealingModule(
            IUnityContainer container,
            IRegionManager regionManager,
            IEventMessager eventMessager,
            IRegionNavigationCallbackHandler regionNavigationCallbackHelper,
            IRegionNavigationCapacityChecker regionNavigationCapacityChecker)
        {
            this.container = container;
            this.regionManager = regionManager;
            this.regionNavigationCallbackHelper = regionNavigationCallbackHelper;
            this.regionNavigationCapacityChecker = regionNavigationCapacityChecker;

            eventMessager.Observe<ShowNewSpotTileMessage>()
                .Subscribe(NavigateToNewSpotTile);
        }
예제 #4
0
        public DealingModule(
            IUnityContainer container,
            IRegionManager regionManager,
            IEventMessager eventMessager,
            IRegionNavigationCallbackHandler regionNavigationCallbackHelper,
            IRegionNavigationCapacityChecker regionNavigationCapacityChecker)
        {
            this.container     = container;
            this.regionManager = regionManager;
            this.regionNavigationCallbackHelper  = regionNavigationCallbackHelper;
            this.regionNavigationCapacityChecker = regionNavigationCapacityChecker;

            eventMessager.Observe <ShowNewSpotTileMessage>()
            .Subscribe(NavigateToNewSpotTile);
        }