Exemple #1
0
        private void ClosePeer()
        {
            if (!PeerOpened)
            {
                return;
            }

            PeerNearMe.PeerNearMeChanged -= PeerNearMe_PeerNearMeChanged;
            PeerCollaboration.SignOut(PeerScope);
            peerObject.Dispose();
            peerObject = null;
        }
 private void btnSignOut_Click(object sender, RoutedEventArgs e)
 {
     // 登出近端分享
     PeerCollaboration.SignOut(PeerScope.NearMe);
 }
Exemple #3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     // Sign out of PNM
     PeerCollaboration.SignOut(PeerScope.NearMe);
 }