public void OnSyncStateChanged(object sender, EventArgs e)
 {
     if (e is SyncState)
     {
         SyncState state = e as SyncState;
         SetActivityIndicator(state.EventListSyncing);
     }
 }
示例#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);
         }
     }
 }
示例#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();
             }
         }
     };
 }