Ejemplo n.º 1
0
 public void OnSyncStateChanged(object sender, EventArgs e)
 {
     if (e is SyncState)
     {
         SyncState state = e as SyncState;
         SetActivityIndicator(state.EventListSyncing);
     }
 }
Ejemplo 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);
         }
     }
 }
Ejemplo 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();
             }
         }
     };
 }