private void Button_Click(object sender, RoutedEventArgs e)
 {
     Figure.Draw(this, new Triangle(), new DashDotLine(), Color.Turquoise);
 }