public List <ComBo> GetListComBo() { List <ComBo> list = new List <ComBo>(); string query = "SELECT * FROM ComBo"; DataTable data = DBConnect.Instance.ExecuteQuery(query); foreach (DataRow item in data.Rows) { ComBo combo = new ComBo(item); list.Add(combo); } return(list); }
public DetailCombo(ComBo combo) { this.combo = combo; InitializeComponent(); }