Panel not displaying when it should be
<p>So in my very small program I am generating a random percentage and based off that percentage it should display one of two panels. However, it is only ever displaying one.</p>

<p>Here is my code:</p>

<pre><code>Random random = new Random();
    private void button1_Click(object sender, EventArgs e)
    {
        bool button1Clicked = true;
        if (button1Clicked == true) { ITIpanel.Visible = true; }
    }

    private void ITIpanel_Paint(object sender, PaintEventArgs e)
    {
        ITItimer.Enabled = true; 
    }

    private void ITItimer_Tick(object sender, EventArgs e)
    {

      double rand = random.NextDouble();
      if (rand &lt;= .50) { bluestimPanel.Visible = true; }
      if (rand &gt;= .50) {  redstimPanel.Visible = true; }

      ITItimer.Enabled = false; 
    }

    private void bluestimPanel_Paint(object sender, PaintEventArgs e)
    {
       Trialtimer.Enabled = true; 
    }

    private void redstimPanel_Paint(object sender, PaintEventArgs e)
    {
        Trialtimer.Enabled = true;
    }

    private void Trialtimer_Tick(object sender, EventArgs e)
    {
        bluestimPanel.Visible = false;
        redstimPanel.Visible = false;
        Trialtimer.Enabled = false;
        ITIpanel.Visible = true; 
    }
</code></pre>
