Beispiel #1
0
 public void LoadFriendsList()
 {
     listViewFriends.Items.Clear();
     m_Friends = krnGateway.GetFriends();
     for (int n = 0; n != m_Friends.Length; n++)
     {
         string nameFriend = m_Friends[n].Name;
         if (m_Friends[n].OurName != "")
         {
             nameFriend = m_Friends[n].OurName;
         }
         listViewFriends.Items.Add(nameFriend, m_Friends[n].FriendSlot ? 1 :0);
     }
 }