Exemple #1
0
 private void GetFolderCallback(SkyDriveResult <List <SkyDriveFolder> > result)
 {
     if (result.Succeded)
     {
         Folders.Clear();
         UpdateFolderPath();
         Folders.AddRange(result.Result);
     }
     else
     {
         MessageBox.Show("Exception occured while getting folder");
     }
     ShowLoading = false;
     NoFolders   = Folders.Count == 0;
 }
Exemple #2
0
        void UploadCallback(SkyDriveResult <bool> result)
        {
            ShowLoading = false;
            dbStream.Close();
            IsoStorageHelper.DeleteFile("ClientsManager_backup.sdf");

            if (result.Succeded)
            {
                GoBack();
                MessageBox.Show("Backup has been uploaded.");
            }
            else
            {
                MessageBox.Show("Error occured while uploading backup: \n" + result.Exception.Message);
            }
        }