Exemplo n.º 1
0
        public void AdvertiseForPeers(MainPage.SongData songData)
        {
            //Init PeerFinder to make a connection from phone->phone
            PeerFinder.TriggeredConnectionStateChanged += TriggeredConnectionStateChanged;
            PeerFinder.Start();

            WriteMessageText("You can now tap to connect a peer device that is also advertising for a connection.\n", true);
        }
Exemplo n.º 2
0
        public NFCConnection(ref MainPage.SongData sd, TextBox SongTitleTextBox, TextBox ArtistTitleTextBox, TextBlock mb, Dispatcher d)
        {
            //setup so we can communicate back to the main form
            _SongTitleTextBox   = SongTitleTextBox;
            _ArtistTitleTextBox = ArtistTitleTextBox;
            _SongTitleText      = SongTitleTextBox.Text;
            _ArtistTitleText    = ArtistTitleTextBox.Text;

            _sd           = sd;
            _MessageBlock = mb;
            _d            = d;
        }