/// <summary> /// check clipboard content and try to decrypt text /// </summary> private void CheckClipboard() { string text = Clipboard.GetTextAsync().Result; string head = "UnderText://"; try { if (text.StartsWith(head)) { text = text.Substring(text.IndexOf(head) + head.Length); string decrypted = Key.Decrypt(text); if (decrypted != string.Empty) { txt_Received.Text = decrypted; } } } catch { ; } }