private void _modelTrain_ImportTrainingComplete(object sender, InvokeOperationEventArgs e)
 {
     try
     {
         if (e.HasError)
         {
             MessageCustomize.Show(e.Error.Message);
             ErrorProcess();
         }
         else
         {
             MessageCustomize.Show("Chuyển dữ liệu lên server thành công");
             if (DialogSended != null)
                 DialogSended.ProcessCallback(MessageBoxResult.OK);
             if (CloseWindow != null)
                 CloseWindow(this, null);
         }
     }
     catch (Exception ex)
     {
         MessageCustomize.Show(ex.Message);
         ErrorProcess();
     }
 }
 private void _modelTrain_DeleteTrainingComplete(object sender, InvokeOperationEventArgs e)
 {
     try
     {
         if (e.HasError)
         {
             MessageCustomize.Show("Không xóa được chương trình đào tạo này");
             ErrorProcess();
         }
         else
         {
             MessageCustomize.Show("Bạn đã xóa thành công", "Xóa", MessageImage.Information);
             ReloadData();
         }
     }
     catch (Exception ex)
     {
         MessageCustomize.Show(ex.Message);
         ErrorProcess();
     }
 }
 private void _modelAuth_ChangePasswordComplete(object sender, InvokeOperationEventArgs e)
 {
     try
     {
         IsLoading = false;
         if (e.HasError)
         {
             MessageCustomize.Show(e.Error.Message);
             ErrorProcess();
         }
         else
         {
             int i = Convert.ToInt32(e.InvokeOp.Value);
             switch (i)
             {
                 case 0:
                     MessageCustomize.Show("Cập nhật mật khẩu thành công", "Thay đổi mật khẩu", MessageImage.Information);
                     if (CloseWindow != null)
                         CloseWindow(this, null);
                     break;
                 case 1:
                     MessageCustomize.Show("Tài khoản đã bị xóa", "Báo lỗi", MessageImage.Alert);
                     break;
                 case 2:
                     VisibleErrPassword = true;
                     StringErrPassword = "******";
                     break;
             }
             IsLoading = false;
         }
     }
     catch (Exception ex)
     {
         MessageCustomize.Show(ex.Message);
         ErrorProcess();
     }
 }