void LoadTypeList() { VIPTypeInfoBll bll = new VIPTypeInfoBll(); ddlType.DataSource = bll.GetList(); ddlType.DisplayMember = "mtitle"; ddlType.ValueMember = "mid"; }
void Refresh() { dgvList.AutoGenerateColumns = false; dgvList.DataSource = bll.GetList(); txtDiscount.Text = ""; txtTitle.Text = ""; txtId.Text = "添加时无编号"; btnSave.Text = "添加"; }