Esempio n. 1
0
        private void Sua()
        {
            DichVuBAL bal = new DichVuBAL();
            DichVu    dv  = new DichVu();

            dv.MaDichVu  = txtMaDichVu.Text;
            dv.TenDichVu = txtTenDichVu.Text;
            dv.Gia       = double.Parse(txtGia.Text);
            dv.DonGia    = txtDonVi.Text;
            bool kq = bal.SuaDV(dv);

            if (kq)
            {
                MessageBox.Show("Cập nhật thành công !", "Thông báo", MessageBoxButtons.OK);
                LoadData();
            }
            else
            {
                MessageBox.Show("Cập nhật thất bại !", "Thông báo", MessageBoxButtons.OK);
            }
        }