title: Detecting if a button was clicked from another class
body: <p>I am looking for a way to detect if a button was pressed in C#. For example:</p>
  
  <pre><code>    private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)        {
  
         if (button1Clicked == true)
         {
            MessageBox.Show("Button 1 was clicked"); 
         }
      }
  </code></pre>
  
  <p>Thank you for looking.</p>