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); }
public static LineShapeCommandOptionView Show(LineShapeCommand cmd) { Instance.DataContext = cmd; return(Instance); }