Esempio n. 1
0
        private void txtTim_TextChanged(object sender, EventArgs e)
        {
            BUS_ChuyenXe tx = new BUS_ChuyenXe();

            if (string.IsNullOrEmpty(txtTim.Text))
            {
                dgvTraCuu.DataSource = tx.LoadGioKhoiHanh();
            }
            else
            {
                dgvTraCuu.DataSource = tx.TimGioKhoiHanh(txtTim.Text);
            }
        }
Esempio n. 2
0
        private void frmHOTRO_GioKhoiHanh_Load(object sender, EventArgs e)
        {
            BUS_ChuyenXe cx = new BUS_ChuyenXe();

            dgvTraCuu.DataSource = cx.LoadGioKhoiHanh();
        }