title: Triggering a button click through code
body: <p>So I have the following code for when the "Add player" button is clicked</p>
  
  <pre><code>private void addPlayerBtn_Click_1(object sender, EventArgs e)
  {
      //Do some code
  }
  </code></pre>
  
  <p>I want to trigger this code from my SDK however. Here is what I have tried</p>
  
  <pre><code>private void command()
  {       
      addPlayerBtn_Click_1(object sender, EventArgs e);          
  }
  </code></pre>
  
  <p>I get lots of errors as soon as I put in the line</p>
  
  <pre><code> addPlayerBtn_Click_1(object sender, EventArgs e) 
  </code></pre>
  
  <p>Could somebody please tell me how to write the code so that I can trigger an event by just writting it in code?</p>