Пример #1
0
        private void btSuaHD_CD_Click(object sender, EventArgs e)
        {
            if (txtMaHD_CD.Text == "" || txtLoaiHD_CD.Text == "" || txtKyHanHD_CD.Text == "")
            {
                MessageBox.Show("Khong co du lieu");
                return;
            }
            HopDong hd = new HopDong(txtMaHD_CD.Text, txtLoaiHD_CD.Text, txtKyHanHD_CD.Text);

            try
            {
                cnb.UpdateHopDong(hd);
            }
            catch (Exception p)
            {
                MessageBox.Show(p.ToString());
            }
        }