Beispiel #1
0
        // ============================================
        // PUBLIC Methods
        // ============================================
        /// Refresh Network Viewer and Network Store
        public void Refresh()
        {
            store.Clear();

            if (P2PManager.KnownPeers == null)
            {
                return;
            }
            if (P2PManager.KnownPeers.Count <= 0)
            {
                return;
            }

            foreach (UserInfo userInfo in P2PManager.KnownPeers.Keys)
            {
                store.Add(userInfo);
            }
        }
Beispiel #2
0
        // ============================================
        // PUBLIC Methods
        // ============================================
        /// Refresh Network Viewer and Network Store
        public override void Refresh()
        {
            store.Clear();

            if (P2PManager.KnownPeers != null &&
                P2PManager.KnownPeers.Count > 0)
            {
                foreach (UserInfo userInfo in P2PManager.KnownPeers.Keys)
                {
                    store.Add(userInfo);
                }
            }

            if (RefreshPeers != null)
            {
                RefreshPeers(this);
            }
        }