Beispiel #1
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            Frm_DonViTinh_Modifies frmDonViTinh = new Frm_DonViTinh_Modifies();

            frmDonViTinh.isAdd = true;
            frmDonViTinh.ShowDialog();
            HienThiDanhSachDonViTinh();
        }
Beispiel #2
0
 private void btnSua_Click(object sender, EventArgs e)
 {
     if (donViTinh != null)
     {
         Frm_DonViTinh_Modifies frmDonViTinh = new Frm_DonViTinh_Modifies();
         frmDonViTinh.donViTinh = donViTinh;
         frmDonViTinh.isAdd     = false;
         frmDonViTinh.ShowDialog();
         HienThiDanhSachDonViTinh();
     }
 }