예제 #1
0
 private void updateCompleted(object sender, UpdateArgumentCompletedEventArgs e)
 {
     try
     {
         if (e.Result.Equals(ListMessage.True))
         {
             this.IsApproved = Visibility.Collapsed.ToString();
             this.OnPropertyChanged("IsApproved");
             this.messagePop.Successful(ValidatorResource.UpdateSuccessful);
         }
         else
         {
             //this..AUTH_STATUS = this.preAuthStatus;
             if (ListMessage.Message.ContainsKey(e.Result))
             {
                 this.messagePop.SetSingleError(ValidatorResource.ErrorUpdate + "\n " + ListMessage.Message[e.Result]);
             }
             else
             {
                 this.messagePop.SetSingleError(ValidatorResource.ErrorUpdate + "\n " + e.Result);
             }
         }
     }
     catch (Exception)
     {
         this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
     }
     finally
     {
         MyHelper.IsFree();
     }
 }
예제 #2
0
 private void updateCompleted(object sender, UpdateArgumentCompletedEventArgs e)
 {
     try
     {
         if (e.Result.Equals(ListMessage.True))
         {
             this.IsApproved = Visibility.Collapsed.ToString();
             this.OnPropertyChanged("IsApproved");
             this.messagePop.Successful(ValidatorResource.UpdateSuccessful);
         }
         else
         {
             //this..AUTH_STATUS = this.preAuthStatus;
             if (ListMessage.Message.ContainsKey(e.Result))
                 this.messagePop.SetSingleError(ValidatorResource.ErrorUpdate + "\n " + ListMessage.Message[e.Result]);
             else
                 this.messagePop.SetSingleError(ValidatorResource.ErrorUpdate + "\n " + e.Result);
         }
     }
     catch (Exception)
     {
         this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
     }
     finally
     {
         MyHelper.IsFree();
     }
 }