示例#1
0
            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);
                    }
                }
            }
示例#2
0
 public override void Commit(EditorDiagram editor, Point point, bool withWires)
 {
     editor.Select(new Rect(this.point0, point));
 }