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); }
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; }