//trong sự kiện nút lưu private void btnSave_Click(object sender, EventArgs e) { Models.RoomMod edit = new Models.RoomMod(); //tạo các biến để gán giá trị vào hàm update string name = txtRoomName.Text; string stt = cboStatus.SelectedValue.ToString();//lưu trạng thái mới để cập nhật vào bản string dec = txtDescription.Text; string area = txtAcreage.Text; string max = txtCapacity.Text; if (edit.editRoom(idRoom, stt, name, dec, area, max) == true)// chạy hàm update { Close(); } // load lại listview }