Beispiel #1
0
        private void txtTraCuu_TextChanged(object sender, EventArgs e)
        {
            BUS_Tram kh = new BUS_Tram();

            if (string.IsNullOrEmpty(txtTraCuu.Text))
            {
                dgvTraCuuTram.DataSource = kh.LoadTram();
            }
            else
            {
                dgvTraCuuTram.DataSource = kh.TraCuuTram(txtTraCuu.Text);
            }
        }
Beispiel #2
0
        private void frmHOTRO_TenTram_Load(object sender, EventArgs e)
        {
            BUS_Tram tram = new BUS_Tram();

            dgvTraCuuTram.DataSource = tram.LoadTram();
        }
        public void LoadQLTram()
        {
            BUS_Tram tram = new BUS_Tram();

            dgvDSTram.DataSource = tram.LoadTram();
        }