protected void ddlRooms_OnSelectedIndexChanged(object sender, EventArgs e)
{
divRoomSettings.Visible = true;
//TODO: load the room into the edit interface.
var rc = new RoomController();
if (ddlRooms.SelectedValue != "-1")
{
var r = rc.GetRoom(new Guid(ddlRooms.SelectedValue), ModuleId);
if (r != null)
{
txtRoomId.Text = r.RoomId.ToString();
txtRoomName.Text = r.RoomName;
txtRoomDescription.Text = r.RoomDescription;
txtRoomPassword.Text = r.RoomPassword;
txtRoomWelcome.Text = r.RoomWelcome;
chkPrivateRoom.Checked = r.Private;
chkEnabled.Checked = r.Enabled;
}
}
}