private void initDataforbus() { BillBLL billBLL = new BillBLL(); cbbiletaa.DataSource = billBLL.GetALl(); cbbiletaa.DisplayMember = "Cmimi"; cbbiletaa.ValueMember = "billid"; cbbiletaa.SelectedIndex = -1; }
private void Form1_Load(object sender, EventArgs e) { BillBLL billBLL = new BillBLL(); BusBLL bus = new BusBLL(); initDataforbus(); dgvbus.DataSource = bus.GetALl(); dgvbileta.DataSource = billBLL.GetALl(); }
public Billmanagment() { InitializeComponent(); datagridviewbill.DataSource = billBLL.GetALl(); }