protected override void OnViewLoaded(object view) { base.OnViewLoaded(view); // if (Poi == null) return; ConfigScreen = new FlowGraphConfigViewModel(); ChartConfig.ConfigChanged += (e, f) => { UpdateGraph(); }; UpdateGraph(); AppState.TimelineManager.FocusTimeThrottled += (e, f) => UpdateGraph(); // AppState.TimelineManager.TimeContentChanged += (e, f) => UpdateGraph(); }
protected override void OnViewLoaded(object view) { base.OnViewLoaded(view); if (Item == null) return; ConfigScreen = new FlowGraphConfigViewModel() {Item = Item}; ChartConfig.ConfigChanged += ChartConfig_ConfigChanged; ViewStyle = Item.Config; if (Poi == null) { FindPoi(); // find poi if (Poi == null) { AppState.DataServer.Services.CollectionChanged += Services_CollectionChanged; } else { Poi.InFlow().CollectionChanged += (e, f) => { UpdateNextStops(); }; } } else { Poi.InFlow().CollectionChanged += (e, f) => { UpdateNextStops(); }; } UpdateNextStops(); AppState.TimelineManager.FocusTimeThrottled += (e, f) => { if (FooView!=null) Execute.OnUIThread(UpdateNextStops); }; }