コード例 #1
0
        public async Task ExecuteSaveProfileCommandAsync()
        {
            if (IsBusy)
            {
                return;
            }

            ProgressDialogManager.LoadProgressDialog("Loading...");

            try
            {
                IsBusy = true;
                await ParseAccess.UpdateProfile(UserDetail);

                UserDialogs.Instance.Toast("Profile updated.", TimeSpan.FromSeconds(3));
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
            }
            finally
            {
                IsBusy = false;
                ProgressDialogManager.DisposeProgressDialog();
            }
        }
コード例 #2
0
 public async Task UpdateInfo(User user)
 {
     try
     {
         await ParseAccess.UpdateProfile(user);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e);
     }
 }