public thongketourform() { InitializeComponent(); tktbus = new thongketourbus(); comboBox1.DataSource = new BindingSource(gtbus.listt(), null); comboBox1.DisplayMember = "Value"; comboBox1.ValueMember = "Key"; }
public giatourform() { InitializeComponent(); gtbus = new giatourbus(); tentcbb.DataSource = new BindingSource(gtbus.listt(), null); tentcbb.DisplayMember = "Value"; tentcbb.ValueMember = "Key"; }