title: try catch validation empty text box
body: <p>Hey so I have the following code which should throw up the errors if the text boxes are empty but it doesn't it just carries on with what it would do were they not and adds an item with 0 or whatever to the list instead, is there a problem with my code?</p>
  
  <pre><code>private void BtnAdd_Click(object sender, EventArgs e)
      {
          try
          {
              theVisit.name = txtName.Text;
              theVisit.address = txtAddress.Text;
              theVisit.arrival = DateTime.Parse(txtArrival.Text);
              //Update theVisit object to reflect any changes made by the user
  
              this.Hide();
              //Hide the form
          }
          catch (Exception)
          {
              if (txtName.Text == "")
                  MessageBox.Show("please enter a customer name");
  
              if(txtAddress.Text == "") 
                  MessageBox.Show("Please enter a customer address");
  
              if(txtArrival.Text == "")
                  MessageBox.Show("Please enter an arrival time");
          }
  </code></pre>
  
  <p>NEW </p>
  
  <pre><code>if (txtName.Text == "" || txtAddress.Text == "" || txtArrival.Text == "")
              MessageBox.Show(" Please enter a value into all boxes");
          else
          theVisit.name = txtName.Text;
          theVisit.address = txtAddress.Text;
          theVisit.arrival = DateTime.Parse(txtArrival.Text);
          //Update theVisit object to reflect any changes made by the user
  </code></pre>