title: Stop second method execution based on if conditions in the first method
body: <p>I have a method that contains some if statements: </p>
  
  <pre><code>private void ValidateInputs()
          {
              if (txtBox_eventName.Text.Trim() == string.Empty)
              {
                  MessageBox.Show("Please enter a valid event name", "Action Required", MessageBoxButtons.OK, MessageBoxIcon.Error);
                  txtBox_eventName.Focus();
                  return;
              }
  
              if (nud_noOfGuests.Value &lt; 10 || nud_noOfGuests.Value &gt; 200)
              {
                  MessageBox.Show("Please enter no of guests between 10 and 200", "Action Required", MessageBoxButtons.OK, MessageBoxIcon.Error);
                  return;
              }
  
              if (radBtn_primeRib.Checked == false &amp;&amp; radBtn_chickenMarsala.Checked == false &amp;&amp; radBtn_gardenLasagna.Checked == false)
              {
                  MessageBox.Show("Please make an Entree choice", "Action Reuired", MessageBoxButtons.OK, MessageBoxIcon.Error);
                  return;
              }
          }
  </code></pre>
  
  <p>I have a second method that does some other stuff. I am calling both of these methods in my click event. I want to stop the program to execute second method if any of the if conditions in the first method is met.</p>
  
  <p>The click event where I am calling both methods is:</p>
  
  <pre><code>private void btn_createEvent_Click(object sender, EventArgs e)
          {
              ValidateInputs();            
              SetValues();
  
              calcCharges = new CateringEvent(eventName, noOfGuests, selectedEntre, barOption, wineOption);
              lbl_calcEntreCharges.Text = calcCharges.EntreCharge.ToString("C2");
              lbl_calcDrinkCharges.Text = calcCharges.DrinksCharge.ToString("C2");
              lbl_calcSurcharge.Text = calcCharges.Surcharge.ToString("C2");
              lbl_calcTotalCharges.Text = calcCharges.TotalCharge.ToString("C2");
  
              txtBox_eventName.Enabled = false;
              btn_createEvent.Enabled = false;
              btn_modifyEvent.Enabled = true;
          }
  </code></pre>
  
  <p>I want <code>SetValues()</code> to run only if none of the if conditions from <code>ValidateInputs()</code> work. How do I achieve that in this case?</p>