protected void Page_Load(object sender, EventArgs e) { myDB = (database)Session["myDB"]; curUser = (user)Session["curUser"]; designUser = (user)Session["designUser"]; userInfoColl = myDB.getUserInfoCollection(); imgColl = myDB.getImagesCollection(); allItems = product_image.getItems(imgColl); Session["imgColl"] = imgColl; Session["allItems"] = allItems; elements.loadElements(imgColl, colorList, lineList, lightList, formList, spaceList, textureList, patternList, massList, balanceList, unityList, harmonyList, rhythmList, proportionList, varietyList, emphasisList, scaleList, typeList); if (curUser.Account_Type == "client") { boardPnl.Visible = true; usersBoardColl = myDB.getUsersBoardCollection(curUser); board_item.loadBoards(usersBoardColl, boardNameList); } else if (curUser.Account_Type == "designer") { designerPnl.Visible = true; user.loadUsers(userInfoColl, designerUserList, curUser); } }
protected void Page_Load(object sender, EventArgs e) { myDB = (database)Session["myDB"]; boardName = (string)Session["boardName"]; curUser = (user)Session["curUser"]; designUser = (user)Session["designUser"]; userInfoColl = myDB.getUserInfoCollection(); images = (List<product_image>)Session["allItems"]; imgColl = myDB.getImagesCollection(); elements.loadElements(imgColl, colorList, lineList, lightList, formList, spaceList, textureList, patternList, massList, balanceList, unityList, harmonyList, rhythmList, proportionList, varietyList, emphasisList, scaleList, typeList); if (curUser.Account_Type == "client") { usersBoardColl = myDB.getUsersBoardCollection(curUser); userNameLbl.Text = curUser.Username; board_item.loadBoards(usersBoardColl, boardNameList); } else if (curUser.Account_Type == "designer") { if (designUser != null) { usersBoardColl = myDB.getUsersBoardCollection(designUser); userNameLbl.Text = designUser.Username; } else { userNameLbl.Text = curUser.Username; usersBoardColl = myDB.getUsersBoardCollection(curUser); } switchUserBtn.Visible = true; user.loadUsers(userInfoColl, designerUserList, curUser); } boardNameLbl.Text = boardName; if (!Page.IsPostBack) { if (boardName != null) { optionsPnl.Visible = true; boardNamePnl.Visible = true; if (curUser.Account_Type == "designer") { userNamePnl.Visible = true; } } else { boardNamePnl.Visible = false; userNamePnl.Visible = false; if (curUser.Account_Type == "designer") { switchUserPnl.Visible = true; } else { changeBoardPnl.Visible = true; } } } }
protected void Page_Load(object sender, EventArgs e) { myDB = (database)Session["myDB"]; curUser = (user)Session["curUser"]; boardName = (string)Session["boardName"]; images = (List<product_image>)Session["allItems"]; imgColl = myDB.getImagesCollection(); usersBoardColl = myDB.getUsersBoardCollection(curUser); board_item.loadBoards(usersBoardColl, boardNameList); elements.loadElements(imgColl, colorList, lineList, lightList, formList, spaceList, textureList, patternList, massList, balanceList, unityList, harmonyList, rhythmList, proportionList, varietyList, emphasisList, scaleList, typeList); boardNameLbl.Text = "Selected Board: " + boardName; }
protected void Page_Load(object sender, EventArgs e) { allItems = (List<product_image>)Session["allItems"]; myDB = (database)Session["myDB"]; myDB.retrieveImagesCollection(); imgColl = myDB.getImagesCollection(); elements.loadElements(imgColl, colorList, lineList, lightList, formList, spaceList, textureList, patternList, massList, balanceList, unityList, harmonyList, rhythmList, proportionList, varietyList, emphasisList, scaleList, typeList); }