protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!Page.IsPostBack)
{
var rc = new RoomController();
ddlRooms.DataSource = rc.GetAllRooms(ModuleId);
ddlRooms.DataBind();
var li = new ListItem();
li.Value = "-1";
li.Text = Localization.GetString("ChooseRoom.Text", LocalResourceFile);
ddlRooms.Items.Insert(0, li);
}
}
catch (Exception exc) //Module failed to load
{
Exceptions.ProcessModuleLoadException(this, exc);
}
}