private void LoadMembers() { uiflowLayoutPanelMembers.Controls.Clear(); Member members = new Member(); members.GetMembersByChatRoomID(ChatRoomID); for (int i = 0; i < members.RowCount; i++) { uiBuddy ucBuddy = new uiBuddy(); ucBuddy.BuddyName = members.MemberID; ucBuddy.Selected += new EventHandler(ucBuddy_Selected); ucBuddy.UnSelected += new EventHandler(ucBuddy_UnSelected); ucBuddy.Status = JBuddy.StatusType.STATUS_ONLINE; uiflowLayoutPanelMembers.Controls.Add(ucBuddy); members.MoveNext(); } }