Esempio n. 1
0
 private void btnLuu_Click(object sender, EventArgs e)
 {
     try
     {
         tb.CapNhatThietBi(txtMaTB.Text, txtTenTB.Text, txtLoai.Text, txtSoLuong.Text, txtSoLuongHu.Text, txtTinhTrang.Text, rtbGhichu.Text);
         MessageBox.Show("Cập nhật thiết bị thành công!!");
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }