Ejemplo n.º 1
0
 public void LoadBuddies()
 {
     if (CurrentUser.Client.IsOnline())
     {
         for (int i = 0; i < CurrentUser.Client.BuddyList.Buddies.Count; i++ )
         {
             JBuddy.IBuddy buddy = (JBuddy.IBuddy)CurrentUser.Client.BuddyList.Buddies[i];
             //buddy.IProperties
             uiBuddy ucBuddy = new uiBuddy();
             ucBuddy.BuddyName = buddy.Name;
             ucBuddy.Status = buddy.Status;
             ucBuddy.Selected += new EventHandler(ucBuddy_Selected);
             ucBuddy.UnSelected += new EventHandler(ucBuddy_UnSelected);
             //ucBuddy.BuddyProfilePath = buddy.Properties.
             uiflowLayoutPanelBuddies.Controls.Add(ucBuddy);
         }
     }
 }
Ejemplo n.º 2
0
 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();
     }
 }