void client_GetKPITypePagingCompleted(object sender, GetKPITypePagingCompletedEventArgs e) { List <T_HR_KPITYPE> list = new List <T_HR_KPITYPE>(); if (e.Error != null && e.Error.Message != "") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result != null) { list = e.Result.ToList(); } else { list = null; } DtGrid.ItemsSource = list; dataPager.PageCount = e.pageCount; } ToolBar.btnRefresh.IsEnabled = true; loadbar.Stop(); }
void client_GetKPITypePagingCompleted(object sender, GetKPITypePagingCompletedEventArgs e) { List<T_HR_KPITYPE> list = new List<T_HR_KPITYPE>(); if (e.Error != null && e.Error.Message != "") { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result != null) { list = e.Result.ToList(); } else { list = null; } DtGrid.ItemsSource = list; dataPager.PageCount = e.pageCount; } ToolBar.btnRefresh.IsEnabled = true; loadbar.Stop(); }