title: How to trigger the code piece when variable changes in C#
body: <p>I'm currently creating a simulation in C#. I am using OpenGl-TaoFramework. I ve encountered some problem . I used  <code>Glut.glutMainLoop();</code>  function in code but I learnt that this function never returns and the program stopped. If I click the button after change variables, it works as I want but the problem is that I dont want to use button. But other way I couldnt be succeed to recall <code>Glut.glutMainLoop();</code>  again.  Any help would be much appreciated. </p>
  
  <pre><code>   private void button1_Click(object sender, EventArgs e)
         {
  
             i = Convert.ToInt32(textBox1.Text);
             j = Convert.ToInt32(textBox2.Text);
             k = Convert.ToInt32(textBox3.Text);
             l = Convert.ToInt32(textBox4.Text);
             m = Convert.ToInt32(textBox5.Text);
  
  
            Glut.glutMainLoop();
  
  
          }
  </code></pre>