void caswsc_DeleteViewapplicationsCompleted(object sender, DeleteViewapplicationsCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null)
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
             return;
         }
         else
         {
             if (!e.Result)
             {
                 Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DALETEFAILED"));
                 return;
             }
             LoadData();
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
     loadbar.Stop();//读取完数据后,停止动画,隐藏
 }
예제 #2
0
 void caswsc_DeleteViewapplicationsCompleted(object sender, DeleteViewapplicationsCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null)
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
             return;
         }
         else
         {
             if (!e.Result)
             {
                 Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DALETEFAILED"));
                 return;
             }
             LoadData();
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
     loadbar.Stop();//读取完数据后,停止动画,隐藏
 }