void client_GetEmployeeSurveysCompleted(object sender, GetEmployeeSurveysCompletedEventArgs e) { loadbar.Stop(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } ObservableCollection<T_OA_REQUIREMASTER> dataList = e.Result; if (dataList != null && dataList.Count > 0) { BindDateGrid(dataList); } else { BindDateGrid(null); } }
void client_GetEmployeeSurveysCompleted(object sender, GetEmployeeSurveysCompletedEventArgs e) { loadbar.Stop(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } ObservableCollection <T_OA_REQUIREMASTER> dataList = e.Result; if (dataList != null && dataList.Count > 0) { BindDateGrid(dataList); } else { BindDateGrid(null); } }