private void btnSua_Click(object sender, EventArgs e) { dtoMayTinh MT = new dtoMayTinh(txtMaMay.Text, txtTenMay.Text, txtCauHinh.Text, txtTinhTrang.Text, txtMaPhong.Text); try { busMayTinh bus_mt = new busMayTinh(); bus_mt.SuaMayTinh(MT); LoadData(); MessageBox.Show("sửa thành công"); } catch { MessageBox.Show("sửa thành công"); } }