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();
         }
     }
 }
 public void CommitResize(EditorDiagram editor, bool withWires)
 {
     editor.CommitMove(this);
 }
 public virtual void Commit(EditorDiagram editor, Point point, bool withWires)
 {
     editor.CommitMove(point, withWires);
 }