public static QRCodeForm EncodeClipboard() { string text = ClipboardHelpers.GetText(true); if (!string.IsNullOrEmpty(text) && TaskHelpers.CheckQRCodeContent(text)) { return(new QRCodeForm(text)); } return(new QRCodeForm()); }
public static QRCodeForm EncodeClipboard() { if (Clipboard.ContainsText()) { string text = Clipboard.GetText(); if (TaskHelpers.CheckQRCodeContent(text)) { return(new QRCodeForm(text)); } } return(new QRCodeForm()); }
public QRCodeForm(string text = null) { InitializeComponent(); Icon = ShareXResources.Icon; if (!string.IsNullOrEmpty(text)) { txtQRCode.Text = text; } else { if (Clipboard.ContainsText()) { text = Clipboard.GetText(); if (TaskHelpers.CheckQRCodeContent(text)) { txtQRCode.Text = text; } } } }