private void ManageParticipants_Load(object sender, System.EventArgs e) { CIX.DirectoryCollection.ParticipantsUpdated += OnParticipantsUpdated; forumParList.RetrieveVirtualItem += OnRetrieveVirtualItem; forumParList.SelectedIndexChanged += OnSelectedIndexChanged; forumAddPart.Click += OnAddButtonClicked; forumRemovePart.Click += OnRemoveButtonClicked; UserList = _forum.Participants(); AddList = new List <string>(_forum.AddedParticipants); RemoveList = new List <string>(_forum.RemovedParticipants); UpdateList(); forumRemovePart.Enabled = false; }
private void LoadList() { Text = string.Format(Resources.ParticipantsTitle, _forum.Name); _participants = _forum.Participants(); _imageList = new ImageList(); parList.SmallImageList = _imageList; parList.VirtualListSize = _participants.Length; if (_participants.Any()) { parList.RedrawItems(0, _participants.Length - 1, false); } parCount.Text = string.Format(Resources.ParticipantsCount, _participants.Length); UpdateButtons(); }