title: calling a buttons click Event method
body: <p>I have a form (AddNewCamper), which contains a textbox and a submit button. In a different form, I'm trying to write:</p>
  
  <pre><code>if (submit button is clicked)
     do stuff
  </code></pre>
  
  <p>In the window that the button is actually in, I have a click event created. So I guess I'm trying to call that click event inside the if statement (which is in a different window from where the click event is located).</p>
  
  <p>Here's what I have:</p>
  
  <pre><code>AddNewCamper camp = new AddNewCamper();
  camp.Show();
  
  // This is where I'm confused. How do I say if this button is clicked,
  // or how do i call its click event that's located in AddNewCamper?
  if (camp.btnNewSubmit_Click_1())
  {
      Camper person = new Camper(camp.txtNewFirstName.Text);
      camp.txtNewFirstName.Text = person.getName();
      c.testListBox.Items.Add(person.getName());
      campersFrame.Content = c;
  }
  </code></pre>