private void Button_Click_2(object sender, RoutedEventArgs e) { IFigure f = new Triangle(this); ICommand c = new DrawCommand(f); c.Do(); execCommands.Push(c); }