Changed function name

This commit is contained in:
Jaex 2016-01-16 07:47:57 +02:00
parent ae025adf46
commit 3c9f237471

View file

@ -53,27 +53,30 @@ public QRCodeForm(string text = null)
{ {
EditMode = true; EditMode = true;
txtQRCode.Visible = true; txtQRCode.Visible = true;
if (Clipboard.ContainsText()) if (Clipboard.ContainsText())
{ {
text = Clipboard.GetText(); text = Clipboard.GetText();
if (!string.IsNullOrEmpty(text) && URLHelpers.IsValidURLRegex(text)) if (!string.IsNullOrEmpty(text) && URLHelpers.IsValidURLRegex(text))
{ {
txtQRCode.Text = text; txtQRCode.Text = text;
} }
else else
{ {
default_Text(); SetDefaultText();
} }
} }
else else
{ {
default_Text(); SetDefaultText();
} }
txtQRCode.SelectAll(); txtQRCode.SelectAll();
} }
} }
private void default_Text() private void SetDefaultText()
{ {
txtQRCode.Text = "Input text to convert"; txtQRCode.Text = "Input text to convert";
} }