Multiple method can use under one condition?
<p>i write some code in <code>c#</code> for example ;
<code> </p>

<pre> if(Condition)

 {
   private void ribbonPanel1_Click(object sender, EventArgs e)
    {
    Do something ; 
    }

 private void Form1_KeyPress(object sender, KeyPressEventArgs e)
    {
       Do Something ;
      }
 private void ribbonPanel1_Click(object sender, EventArgs e)
    {
    Do something ; 
    }

}  
</code></pre>

<p>Is this allowed ?  can we restrict multiple Methods of control under any condition ? Not only if can we use any Loop?</p>
