void svcF2_EventListUpdated(object sender, EventListEventArg e) { UIAction(() => updateDataSource(e.List)); //App.Current.RootVisual.Dispatcher.BeginInvoke(() => updateDataSource(e.List)); //updateDataSource(e.List); if (friendRtvrSvcs.ContainsKey(e.ID)) friendRtvrSvcs[e.ID].EventListUpdated -= new EventHandler<EventListEventArg>(svcF2_EventListUpdated); }
void svc_EventListUpdated(object sender, EventListEventArg e) { UIAction(() => updateDataSource(e.List)); //App.Current.RootVisual.Dispatcher.BeginInvoke(() => updateDataSource(e.List)); //updateDataSource(e.List); svc.EventListUpdated -= new EventHandler<EventListEventArg>(svc_EventListUpdated); }