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