private void BtnFindRoom_Click(object sender, EventArgs e) { this.dgvFindRoom.DataSource = RoomBUS.FindRoom( ((KeyValuePair <string, string>)cbFindRoomID.SelectedItem).Value, ((KeyValuePair <string, string>)cbFindRoomType.SelectedItem).Value, ((KeyValuePair <string, Int64>)cbFindRoomPrice.SelectedItem).Value, ((KeyValuePair <string, string>)cbFindRoomStatus.SelectedItem).Value); if (this.dgvFindRoom.Rows.Count == 0) { this.tbFindRoomID.Text = this.tbFindRoomType.Text = this.tbFindRoomPrice.Text = this.tbFindRoomStatus.Text = this.rtbFindRoomNote.Text = null; MessageBox.Show("Không tìm thấy phòng phù hợp!", "KHÔNG TÌM THẤY KẾT QUẢ", MessageBoxButtons.OK, MessageBoxIcon.Information); } }