Ejemplo n.º 1
0
        private void ChildBloons_Button_Click(object sender, EventArgs e)
        {
            if (Panel3.Visible == true)
            {
                Panel3.Hide();
                if (SwitchPanel.Text == "Page 2")
                {
                    Panel1.Show();
                }
                else if (SwitchPanel.Text == "Page 1")
                {
                    Panel2.Show();
                }

                ChildBloons_Button.Text = "Child Bloons";
            }
            else
            {
                Panel1.Hide();
                Panel2.Hide();
                Panel3.Show();

                if (SwitchPanel.Text == "Page 2")
                {
                    ChildBloons_Button.Text = "Page 1";
                }
                else if (SwitchPanel.Text == "Page 1")
                {
                    ChildBloons_Button.Text = "Page 2";
                }
            }
        }
Ejemplo n.º 2
0
 private void SwitchPanel_Click(object sender, EventArgs e)
 {
     Panel3.Hide();
     ChildBloons_Button.Text = "Child bloons";
     if (SwitchPanel.Text == "Page 2")
     {
         Panel1.Visible   = false;
         Panel2.Visible   = true;
         SwitchPanel.Text = "Page 1";
     }
     else if (SwitchPanel.Text == "Page 1")
     {
         Panel1.Visible   = true;
         Panel2.Visible   = false;
         SwitchPanel.Text = "Page 2";
     }
 }
Ejemplo n.º 3
0
 private void btn3_Click(object sender, EventArgs e)
 {
     Panel3.Hide();
     Panel4.Show();
 }