public void LoadListOfThisBoard() { this.Controls.Clear(); listDTOs.Clear(); listUIs.Clear(); //-------load menu bar--------------------- //this.Controls.Add(lbNameProject); //this.Controls.Add(btnInvite); //this.Controls.Add(btnMode); //this.Controls.Add(btnPersonal); //this.Controls.Add(btnStar); this.Controls.Add(pnMenu); //-------load lits--------------------- ListBLL listBLL = new ListBLL(); listDTOs = listBLL.GetAllList(this.idBoard); foreach (ListDTO l in listDTOs) { ListUI lsUI = new ListUI(l.ListId, l.IndexList, l.Title, l.Color, this); listUIs.Add(lsUI); this.Controls.Add(lsUI); } ListUIButtonCreate btnNewList = new ListUIButtonCreate(listDTOs.Count, this.idBoard); this.Controls.Add(btnNewList); }
public MoveForm(int X, int Y, int cardId) { InitializeComponent(); this.Location = new Point(X, Y); this.StartPosition = FormStartPosition.Manual; _cardId = cardId; this.Height = 280; cardDTO = cardBLL.GetCard(_cardId); listDTO = listBLL.GetList(cardDTO.ListId); // listDTOs = listBLL.GetAllList(listDTO.BoardId); listDTOs = listBLL.GetAllList(Global.id_Board); //cardDTOs = cardBLL.GetAllCard(cardDTO.ListId); boardBtn.LabelText = Global.id_Board.ToString(); listBtn.LabelText = listDTO.Title; // positionBtn.LabelText = cardDTO.IndexCard.ToString(); }