日期:2014-05-17 浏览次数:20819 次
//单击客房在不可读区显示客房信息 private void dgvRoomInfoList_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { index = dgvRoomInfoList.SelectedCells[0].RowIndex; List<Room> rooms = dgvRoomInfoList.DataSource as List<Room>; Room room=rooms[index]; manager.SearchRoom(room); //赋值 txtNumber_2.Text = room.Number; txtGuestNumber_2.Text = room.GuestNumber.ToString(); txtBedNumber_2.Text = room.BedNumber.ToString(); cboState_2.Text=room.State;//此处 txtDescription_2.Text = room.Description; }