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