diff -r a629cd533b240945a67fb7a8bbea175ec91fa381 -r b9e2958f6d0bc7eb032d8f405753a746843217bd QRWin/Form1.cs --- a/QRWin/Form1.cs Sat Jan 26 16:40:55 2013 -0600 +++ b/QRWin/Form1.cs Sun Jan 27 21:45:21 2013 -0600 @@ -33,6 +33,17 @@ private void btnMakeQR_Click(object sender, EventArgs e) { + if (txtName.Text == "") + { + MessageBox.Show("Please enter a value for the name.", "QRWin", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + return; + } + + if (txtKey.Text == "") + { + MessageBox.Show("Please enter your key or generate one.", "QRWin", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + return; + } qrCon1.Text = String.Format("otpauth://totp/{0}?secret={1}", txtName.Text, txtKey.Text); } }