Beispiel #1
0
 private void Clear()
 {
     ProductIdTextBox.Clear();
     ProductNameTextBox.Clear();
     DescriptionTextBox.Clear();
     ProductPriceTextBox.Clear();
     NewProductArrivedTextBox.Clear();
     onHandCount.Clear();
 }
Beispiel #2
0
 private bool AdditionalQuantityIsValid()
 {
     try
     {
         int.Parse(NewProductArrivedTextBox.Text);
         return(true);
     }
     catch (Exception)
     {
         if (NewProductArrivedTextBox.Text.Length == 0)
         {
             return(true);
         }
         else
         {
             MessageBox.Show("Arrival quantity must be a valid number.");
             NewProductArrivedTextBox.Focus();
             return(false);
         }
     }
 }