void OnQueryCompleted(object sender, EventWithDataArgs<IList<InvestmentHistoryData>> e) { // Hide the loading indicator x_PanelFetchingData.Visibility = Visibility.Collapsed; // Set the returned data as ItemsSource to the BindableDataSeries: this will update the series ((DataPointSeries)x_Chart.Series[0]).ItemsSource = e.Data; }
void OnDataUpdated(object sender, EventWithDataArgs<InvestmentData> e) { if (e.Data == null) return; Dispatcher.BeginInvoke(() => { x_Chart.Title = string.Format("{0}: {1} ({2})", e.Data.Symbol, e.Data.Price, e.Data.Change); }); }
void myapp_OnReload(object sender, EventWithDataArgs<int> args) { lock (this) { } }
private void myapp_OnReload(object sender, EventWithDataArgs<int> args) { lock(this) { Interceptors = null; _startinterceptors = null; _startapplicationinterceptors = null; _finishinterceptors = null; _finishapplicationinterceptors = null; _postauthjorizeinterceptors = null; _errorinterceptors = null; } }