public void RemoveUser(string userID) { string recentID = RecentListBox.ConstructRecentID4User(userID); this.chatListBox.RemoveSubItemsById(recentID); this.chatListBox.Invalidate(); }
public void SetTwinkleState(string id, bool isGroup, bool twinkle) { string recentID = isGroup ? RecentListBox.ConstructRecentID4Group(id) : RecentListBox.ConstructRecentID4User(id); ChatListSubItem[] items = this.chatListBox.GetSubItemsById(recentID); if (items == null || items.Length == 0) { return; } items[0].IsTwinkle = twinkle; }