private void Clear() { ProductIdTextBox.Clear(); ProductNameTextBox.Clear(); DescriptionTextBox.Clear(); ProductPriceTextBox.Clear(); NewProductArrivedTextBox.Clear(); onHandCount.Clear(); }
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); } } }