public void OnSyncStateChanged(object sender, EventArgs e) { if (e is SyncState) { SyncState state = e as SyncState; SetActivityIndicator(state.EventListSyncing); } }
public void OnSyncStateChanged(object sender, EventArgs e) { if (e is SyncState) { SyncState state = e as SyncState; if (state.EventIdSyncing == eventId) { SetActivityIndicator(state.EventDetailsSyncing); } } }
private EventService() { EventList = new SortableObservableCollection <Event>(); localDb = new LocalDatabaseAccess(); fbClient = new FacebookClient(); CurrentSyncState = new SyncState(); SessionInformationProvider.INSTANCE.SessionStateChanged += (sender, e) => { if (e is SessionState) { SessionState state = e as SessionState; if (state.IsAuthenticated == false) { EventList.Clear(); } } }; }