void SoaChannel_UpdateAgentDataSetCompleted(object sender, UpdateAgentDataSetCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error != null && e.Error.Message != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } else { if (e.Result != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result)); return; } Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("CLOSEAGENTSUCCESS")); if (GlobalFunction.IsSaveAndClose(refreshType)) { RefreshUI(refreshType); } RefreshUI(RefreshedTypes.All); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); RefreshUI(RefreshedTypes.HideProgressBar); } }
void SoaChannel_UpdateAgentDataSetCompleted(object sender, UpdateAgentDataSetCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error != null && e.Error.Message != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } else { if (e.Result != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result)); return; } Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("CLOSEAGENTSUCCESS")); if (GlobalFunction.IsSaveAndClose(refreshType)) { RefreshUI(refreshType); } RefreshUI(RefreshedTypes.All); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); RefreshUI(RefreshedTypes.HideProgressBar); } }