private void method_3() { this.TableName = "SurveyDefine"; SurveyDefineDal surveyDefineDal = new SurveyDefineDal(); if (this.IsFilter) { this.lSurveyDefine = surveyDefineDal.GetListByPageId(this.FilterPageId); } else { this.lSurveyDefine = surveyDefineDal.GetList(); } this.DataGrid1.ItemsSource = this.lSurveyDefine; }
public List <SurveyDefine> GetSurveyDefine() { SurveyDefineDal surveyDefineDal = new SurveyDefineDal(); return(surveyDefineDal.GetList()); }