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); }); }
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); }
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); }