Esempio n. 1
0
        private void OnFriendSlot(object sender, System.EventArgs e)
        {
            if (listViewFriends.SelectedItems.Count <= 0)
            {
                return;
            }
            int index = listViewFriends.SelectedIndices[0];

            m_Friends[index].FriendSlot = !m_Friends[index].FriendSlot;
            listViewFriends.SelectedItems[0].ImageIndex = m_Friends[index].FriendSlot ? 1 :0;
            krnGateway.ChangeFriendSlotAssigned(m_Friends[index].ID, m_Friends[index].UserHash, m_Friends[index].Port, m_Friends[index].FriendSlot);
        }