public System.Web.UI.WebControls.Button WriteButton(int x, string stringID)
        {
            this.entity = new Entity();

            this.lambdaCampus = new LambdaCampus(HttpContext.Current.Session[SessionEnum.SessionNames.CampusName.ToString()].ToString());

            this.lambdaSlots = new LambdaSlots(this.lambdaCampus.GetFilterToCampus().ElementAt(x).ID);
            this.lambdaReservations = new LambdaReservations(this.lambdaSlots.ID);

            this.Bord[x] = new System.Web.UI.WebControls.Button();
            this.Bord[x].Width = GROTEBUTTON_X;
            this.Bord[x].Height = GROTEBUTTON_Y;
            this.Bord[x].CommandName = stringID;

            if (!lambdaSlots.GetControlAvailibe() && !this.lambdaReservations.GetCheckReservationBySlotID())
                this.Bord[x].Text = "V";
            else
            {
                this.Bord[x].Text = "X";
                this.Bord[x].Enabled = false;
            }
            return this.Bord[x];
        }
        public System.Web.UI.WebControls.Button WriteButton(int x, string stringID)
        {
            this.entity = new Entity();
            this.lambdaSlots = new LambdaSlots(entity.DB_Slots.ElementAt(x).ID);

            this.lambdaReservations = new LambdaReservations(this.lambdaSlots.ID);

            this.Bord[x] = new System.Web.UI.WebControls.Button();
            this.Bord[x].Width = GROTEBUTTON_X;
            this.Bord[x].Height = GROTEBUTTON_Y;
            this.Bord[x].CommandName = stringID;

            if (!lambdaSlots.GetControlAvailibe() && !this.lambdaReservations.GetCheckReservationBySlotID())
                this.Bord[x].Text = stringID;
            else
            {
                this.Bord[x].Text = "x";
                this.Bord[x].Enabled = false;
            }
            return this.Bord[x];
        }