protected void Page_Load(object sender, EventArgs e) { this.entity = new Entity(); int aantal_buttons = this.entity.DB_Slots.Count; this.buttons = new ButtonGenerator(aantal_buttons); for (int i = 0; i < aantal_buttons; i++) { Panel1.Controls.Add(buttons.WriteButton(i, entity.DB_Slots.ElementAt(i).ID.ToString())); this.buttons.ClickSlots(i); } }
protected void Page_Load(object sender, EventArgs e) { try { if (HttpContext.Current.Session[SessionEnum.SessionNames.LecturorsID.ToString()].Equals(string.Empty)) HttpContext.Current.Response.Redirect(NEXT_PAGE); } catch { HttpContext.Current.Response.Redirect(NEXT_PAGE); } this.entity = new Entity(); int aantal_buttons = this.entity.DB_Slots.Count; this.buttons = new ButtonGenerator(aantal_buttons); for (int i = 0; i < aantal_buttons; i++) { Panel1.Controls.Add(buttons.WriteButton(i, entity.DB_Slots.ElementAt(i).ID.ToString())); this.buttons.ClickSlots(i); } }
protected void Page_Load(object sender, EventArgs e) { try { if (HttpContext.Current.Session[SessionEnum.SessionNames.LecturorsID.ToString()].Equals(string.Empty)) HttpContext.Current.Response.Redirect(NEXT_PAGE); } catch { HttpContext.Current.Response.Redirect(NEXT_PAGE); } this.entity = new Entity(); int aantal_buttons = this.entity.DB_Slots.Count; this.buttons = new ButtonGenerator(aantal_buttons); //MessageBox.Show(HttpContext.Current.Session[SessionEnum.SessionNames.CampusName.ToString()].ToString()); this.lambdaCampus = new LambdaCampus(HttpContext.Current.Session[SessionEnum.SessionNames.CampusName.ToString()].ToString()); TableAP table = new TableAP(this.lambdaCampus.GetFilterToCampus()); for (int i = 0; i < table.List.Count; i++) { table.Index = i; this.tableDatum.Rows.Add(table.GetTableDate()); this.tableBegin.Rows.Add(table.GetTableDateBegin()); this.tableEind.Rows.Add(table.GetTableDateEnd()); this.tableDigitaal.Rows.Add(table.GetTableDigital()); this.tableDuur.Rows.Add(table.GetTableDuration()); this.tableLocatie.Rows.Add(table.GetTableLocation()); this.tableBeschikbaar.Rows.Add(table.GetTableAvailibility()); this.tableCapaciteit.Rows.Add(table.GetTableCapacity()); Panel1.Controls.Add(buttons.WriteButton(i, table.List.ElementAt(i).ID.ToString())); this.buttons.ClickSlots(i); } lblCampus.Text = lambdaCampus.CampusName; }