예제 #1
0
 public override void Commit(EditorDiagram editor, Point point, bool withWires)
 {
     if (editor.SelectionCount > 1)
     {
         base.Commit(editor, point, withWires);
     }
     else
     {
         editor.CommitMove(point, withWires, this);
         if (this.Parent.Wire.IsDeleted())
         {
             editor.Unselect(this.Parent.Wire);
         }
         else
         {
             this.Parent.Refresh();
         }
     }
 }
예제 #2
0
 public void CommitResize(EditorDiagram editor, bool withWires)
 {
     editor.CommitMove(this);
 }
예제 #3
0
 public virtual void Commit(EditorDiagram editor, Point point, bool withWires)
 {
     editor.CommitMove(point, withWires);
 }