Exemplo n.º 1
0
 public LineCADShape(LineShapeCommand cmd)
 {
     Command   = cmd;
     PositionX = 0;
     PositionY = 0;
     EndpointX = 50;
     EndpointY = 50;
     Panel.SetZIndex(ShapeControl, 10);
     UpdateControl();
 }
        private void PrimitiveLine_Click(object sender, RoutedEventArgs e)
        {
            LineShapeCommand cmd = new LineShapeCommand();

            Recipe.AddCommand(cmd);
        }
Exemplo n.º 3
0
 public static LineShapeCommandOptionView Show(LineShapeCommand cmd)
 {
     Instance.DataContext = cmd;
     return(Instance);
 }