public override void Commit(EditorDiagram editor, Point point, bool withWires) { this.Move(editor, point); Wire wire = editor.CreateWire(this.Point1, this.Point2); if (wire == null) { wire = editor.FindWireNear(point); if (wire != null) { editor.Select(wire); } } }
public override void Commit(EditorDiagram editor, Point point, bool withWires) { editor.Select(new Rect(this.point0, point)); }