コード例 #1
0
 private void ComboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBox1.SelectedItem.ToString() == "Mobiles")
     {
         MOBILES.Show();
         LAPTOPS.Hide();
         MainPic.Hide();
         NormalPanel.Hide();
         MainPicLaptops.Hide();
         MainPicMobiles.Show();
     }
     else if (comboBox1.SelectedItem.ToString() == "Laptops")
     {
         LAPTOPS.Show();
         MOBILES.Hide();
         MainPic.Hide();
         NormalPanel.Hide();
         MainPicMobiles.Hide();
         MainPicLaptops.Show();
     }
     else
     {
         MOBILES.Hide();
         LAPTOPS.Hide();
         MainPic.Show();
         MainPicMobiles.Hide();
         MainPicLaptops.Hide();
     }
 }
コード例 #2
0
 private void Label1_Click(object sender, EventArgs e)
 {
     MainPic.Show();
     MOBILES.Hide();
     LAPTOPS.Hide();
     NormalPanel.Show();
     MainPicLaptops.Hide();
     MainPicMobiles.Hide();
 }