private void ShowTextReceiveToast(TextTransfer.TextReceiveEventArgs e) { if (e.Success) { Toaster.ShowClipboardTextReceivedNotification((Guid)e.Guid, e.HostName); } else { Debug.WriteLine($"text with guid {e.Guid.ToString()} : success = false"); } }
private async static void TextReceiver_TextReceiveFinished(TextTransfer.TextReceiveEventArgs e) { try { Activity.Invoke(); if (!e.Success) { ShowToast(context, "Failed to receive text.", ToastLength.Long); return; } CopyTextToClipboard(context, (Guid)e.Guid); } finally { await progressNotifier?.ClearProgressNotification(); } }
private async void TextReceiver_TextReceiveFinished(TextTransfer.TextReceiveEventArgs e) { ShowTextReceiveToast(e); }