Example #1
0
 private void BookAmountCueText_Click(object sender, EventArgs e)
 {
     if (BookAmountTextBox.Text == "")
     {
         BookAmountCueText.Hide();
         BookAmountTextBox.Focus();
     }
 }
Example #2
0
 private bool CheckInput()
 {
     try
     {
         var amount = Convert.ToInt32(BookAmountTextBox.Text);
     }
     catch
     {
         MessageBox infoBox = new MessageBox(13);
         infoBox.ShowDialog();
         infoBox.Dispose();
         BookAmountTextBox.Focus();
         return(false);
     }
     return(true);
 }