public void MenuItemColorPicker_click(object Sender, EventArgs e) {
     colorPicker = new MyColorPicker((Color)board.Children[0].GetValue(ColorAnimation.ToProperty));
     if (currentshap != 3){//si c'est pas l'image, on va changer le couleur
         if (colorPicker.ShowDialog() == true)
         {
             board.Children[currentshap].SetValue(ColorAnimation.ToProperty, colorPicker.colorPicker.Color);
             board.Begin(this, true);
             board.SetSpeedRatio(this, speedRadio);
         }
     }
 }
Beispiel #2
0
 public void MenuItemColorPicker_click(object Sender, EventArgs e)
 {
     colorPicker = new MyColorPicker((Color)board.Children[0].GetValue(ColorAnimation.ToProperty));
     if (currentshap != 3) //si c'est pas l'image, on va changer le couleur
     {
         if (colorPicker.ShowDialog() == true)
         {
             board.Children[currentshap].SetValue(ColorAnimation.ToProperty, colorPicker.colorPicker.Color);
             board.Begin(this, true);
             board.SetSpeedRatio(this, speedRadio);
         }
     }
 }