void client_ImportSetMasterAddCompleted(object sender, ImportSetMasterAddCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.strMsg == "EXISTIMPORTSETCITY") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("EXISTIMPORTSETCITY"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); RefreshUI(RefreshedTypes.HideProgressBar); return; } ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); if (closeFormFlag) { RefreshUI(RefreshedTypes.Close); } else { FormType = FormTypes.Edit; } RefreshUI(RefreshedTypes.All); } }
void client_ImportSetMasterAddCompleted(object sender, ImportSetMasterAddCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.strMsg == "EXISTIMPORTSETCITY") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("EXISTIMPORTSETCITY"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); RefreshUI(RefreshedTypes.HideProgressBar); return; } ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); if (closeFormFlag) { RefreshUI(RefreshedTypes.Close); } else { FormType = FormTypes.Edit; } RefreshUI(RefreshedTypes.All); } }