void client_SalarySolutionSameSearchCompleted(object sender, SalarySolutionSameSearchCompletedEventArgs e) { if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); RefreshUI(RefreshedTypes.HideProgressBar); } else { if (e.Result) { RefreshUI(RefreshedTypes.HideProgressBar); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("EXIST"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("EXIST")); } else { //if (SolutionItemWinForm.salarySolutionItemsList != null) //{ // if (SolutionItemWinForm.salarySolutionItemsList.Count() > 0) // { // SalarySolution.T_HR_SALARYSOLUTIONITEM = SolutionItemWinForm.salarySolutionItemsList; // } //} SalarySolutionID = SalarySolution.SALARYSOLUTIONID; client.SalarySolutionAddAsync(SalarySolution); } } }