private void RefreshAllPoolListBox() { lstBoxAllPools.Items.Clear(); List <WordPool> allWordPools = _wordPoolController.GetAllMyActiveWordPools(user.UserID); //lstViewMyPool.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize); foreach (WordPool item in allWordPools) { lstBoxAllPools.Items.Add(item); } }
private void frmPractice_Load(object sender, EventArgs e) { List <WordPool> allWordPools = _WordPoolController.GetAllMyActiveWordPools(user.UserID); foreach (WordPool item in allWordPools) { lstMyPools.Items.Add(item); } if (user.RoleID == 3) { btnRandom.Enabled = false; } else { btnRandom.Enabled = true; } }