private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.Item.Equals(barButtonItem1))
     {
         z++;
         panel2.Visible = false;
         panel3.Visible = false;
         for (int i = 0; i < z; i++)
         {
             f = v.getform("triangle");
             f.afficher(list2[i]);
         }
     }
 }
 private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.Item.Equals(barButtonItem2))
     {
         y++;
         panel2.Visible = false;
         panel3.Visible = false;
         for (int i = 0; i < y; i++)
         {
             f = v.getform("cercle");
             f.afficher(list1[i]);
         }
     }
 }
Example #3
0
 public void afficher(PictureBox pictureBox1)
 {
     decoratedShape.afficher(pictureBox1);
 }