Exemplo n.º 1
0
 /// <summary>
 /// 保存数据的完成事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_AddBatchOrgInfoCompleted(object sender, AddBatchOrgInfoCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null && e.Error.Message != "")
         {
             RefreshUI(RefreshedTypes.HideProgressBar);
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), e.Error.Message, Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
         if (e.Result)
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("导入失败"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         }
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
     catch (Exception ex)
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), ex.ToString(), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 保存数据的完成事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_AddBatchOrgInfoCompleted(object sender, AddBatchOrgInfoCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null && e.Error.Message != "")
         {
             RefreshUI(RefreshedTypes.HideProgressBar);
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), e.Error.Message, Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
         if (e.Result)
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("导入失败"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         }
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
     catch (Exception ex)
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), ex.ToString(), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
 }