예제 #1
0
 void SoaChannel_AgentDataSetAddCompleted(object sender, AgentDataSetAddCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     try
     {
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "AGENTAGINGSET"));
             if (GlobalFunction.IsSaveAndClose(refreshType))
             {
                 RefreshUI(refreshType);
             }
             else
             {
                 this.dINVALIDDATE.IsEnabled = true;
                 actions = FormTypes.Edit;
             }
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }
예제 #2
0
 void SoaChannel_AgentDataSetAddCompleted(object sender, AgentDataSetAddCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     try
     {
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "AGENTAGINGSET"));
             if (GlobalFunction.IsSaveAndClose(refreshType))
             {
                 RefreshUI(refreshType);
             }
             else
             {
                 this.dINVALIDDATE.IsEnabled = true;
                 actions = FormTypes.Edit;
             }
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }