public void RefreshCloudPreferencesState(CloudPreferencesStateEntity entity)
 {
     InvokeOnMainThread(() => {
         btnLoginDropbox.Title = entity.IsDropboxLinkedToApp ? "Logout from Dropbox" : "Login to Dropbox";
     });
 }
Example #2
0
 public void RefreshCloudPreferencesState(CloudPreferencesStateEntity entity)
 {
     Console.WriteLine("PreferencesWindow - IsDropboxLinkedToApp: {0}", entity.IsDropboxLinkedToApp);
     Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() =>
     {
         if (entity.IsDropboxLinkedToApp)
         {
             lblDropbox_Authenticated.Content = "True";
             btnDropboxLoginLogout.Title = "Logout from Dropbox";
         }
         else
         {
             lblDropbox_Authenticated.Content = "False";
             btnDropboxLoginLogout.Title = "Login to Dropbox";
         }
     }));            
 }
 public void RefreshCloudPreferencesState(CloudPreferencesStateEntity entity)
 {
     Activity.RunOnUiThread(() =>
     {
         var preference = FindPreference("dropbox_login");
         preference.Title = entity.IsDropboxLinkedToApp ? "Logout from Dropbox" : "Login to Dropbox";
     });
 }
Example #4
0
 public void RefreshCloudPreferencesState(CloudPreferencesStateEntity entity)
 {
 }
 public void RefreshCloudPreferencesState(CloudPreferencesStateEntity entity)
 {
     InvokeOnMainThread(() =>
     {
         foreach(var item in _items)
         {
             if(item.Id == "login_dropbox")
                 item.Title = entity.IsDropboxLinkedToApp ? "Logout from Dropbox" : "Login to Dropbox";
             else
                 item.Enabled = entity.IsDropboxLinkedToApp;
         }
         tableView.ReloadData();
     });
 }