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;
txtQRCode.Visible = true;
if (Clipboard.ContainsText())
{
text = Clipboard.GetText();
if (!string.IsNullOrEmpty(text) && URLHelpers.IsValidURLRegex(text))
{
txtQRCode.Text = text;
}
else
{
default_Text();
SetDefaultText();
}
}
else
{
default_Text();
SetDefaultText();
}
txtQRCode.SelectAll();
}
}
private void default_Text()
private void SetDefaultText()
{
txtQRCode.Text = "Input text to convert";
}
@ -158,4 +161,4 @@ private void tsmiSaveAs_Click(object sender, EventArgs e)
}
}
}
}
}