public void OnSyncStateChanged(object sender, EventArgs e)
 {
     if (e is SyncState)
     {
         SyncState state = e as SyncState;
         SetActivityIndicator(state.EventListSyncing);
     }
 }
Esempio n. 2
0
 public void OnSyncStateChanged(object sender, EventArgs e)
 {
     if (e is SyncState)
     {
         SyncState state = e as SyncState;
         if (state.EventIdSyncing == eventId)
         {
             SetActivityIndicator(state.EventDetailsSyncing);
         }
     }
 }
Esempio n. 3
0
 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();
             }
         }
     };
 }