void LoadList() { List <MemberTypeInfo> memberTypeInfos = MemberTypeInfoBll.Select(); dgvList.AutoGenerateColumns = false; dgvList.DataSource = memberTypeInfos; }
void LoadType() { MemberTypeInfoBll memberTypeInfoBll = new MemberTypeInfoBll(); ddlType.DisplayMember = "MTitle"; ddlType.ValueMember = "MId"; ddlType.DataSource = memberTypeInfoBll.Select(); }