public MainWindow()
 {
     InitializeComponent();
     coordinateSystem = new CoordinateSystem2DInteractor(canvas.Width, canvas.Height);
     canvas.Children.Add(currentLine);
     shape = new Composite.MainShape(currentLine, coordinateSystem);
     ActivateDoZ();
     MouseMove      += dragElement_MouseMove;
     MouseDown      += pickElement_MouseDown;
     MouseUp        += dropElement_MouseUp;
     KeyDown        += pickFewElements_KeyDown;
     KeyUp          += upKey_KeyUp;
     PreviewMouseUp += upMouse;
     ChangeEnabling(false);
     ActivateMergeBecauseOfLines();
 }
示例#2
0
 public Component(Shape shape, CoordinateSystemInteractor coordinate)
 {
     this.shape      = shape;
     this.coordinate = coordinate;
 }
 public MainShape(Shape shape, CoordinateSystemInteractor coordinate)
     : base(shape, coordinate)
 {
 }