private void frmDatPhong_Load(object sender, EventArgs e)
        {
            LoaiPhongBUS lpbus = new LoaiPhongBUS();

            dgvDichVu.DataSource = dvbus.getalldv();
            autoCompleteSource();
            lblTenPhong.Text  = TenPhong;
            lblLoaiPhong.Text = TenLoaiPhong;
        }
 private void frmDichVu_Load(object sender, EventArgs e)
 {
     dvBUS  = new DichVuBUS();
     listDV = new List <eDichVu>();
     listDV = dvBUS.getalldv();
     gridControlDV.DataSource = listDV;
     cboTKDV.Items.Add("Tìm theo mã");
     cboTKDV.Items.Add("Tìm theo tên");
 }
        private void btnThemDV_Click(object sender, EventArgs e)
        {
            eDichVu newdv = new eDichVu();

            newdv.MaDV    = txtMaDV.Text.Trim();
            newdv.TenDV   = txtTenDV.Text;
            newdv.DonGia  = Convert.ToInt32(txtDonGia.Text);
            newdv.SoLuong = Convert.ToInt32(txtSL.Text);
            int kq = dvBUS.InsertDichVu(newdv);

            if (kq == 1)
            {
                MessageBox.Show("Thêm thành công!!!");
            }
            List <eDichVu> listDichVu = dvBUS.getalldv();

            gridControlDV.DataSource = listDichVu;
        }