title: C# static method
body: <p>I have a problem with a example of my book. From what i have read non static methods cant be used without instance a object of the class. So is this ok ?</p>
  
  <pre><code>public partial class TempAgencyForm : Form
  {
       public TempAgencyForm()
       {
          InitializeComponent();
       }
  
       private void  btnCalculate_Click(object sender, EventArgs e)
       {
          ...
          setVisibility(false);
       }
  
       private void  setVisibility(bool visibilityValue)
       {
           ...
       }
   }
  </code></pre>