Esempio n. 1
0
        private async void Ping(object sender, EventArgs e)
        {
            string response = await _connectionService.GetIncomingConnections(YourId.Text);

            if (string.IsNullOrEmpty(response))
            {
                return;
            }

            var result = System.Windows.MessageBox.Show("Incoming screenshot. Do you want to look?",
                                                        "Screenshot",
                                                        MessageBoxButton.YesNo,
                                                        MessageBoxImage.Information
                                                        );

            if (result.ToString() == "Yes")
            {
                Uri uri = _connectionService.GetUrlFromResponse(response);
                ShowScreenshot(uri);
            }
        }