Beispiel #1
0
 /// <summary>
 /// Call <see cref="M:Northwoods.Go.GoObject.AddSelectionHandles(Northwoods.Go.GoSelection,Northwoods.Go.GoObject)" /> on the
 /// <see cref="P:Northwoods.Go.GoObject.SelectionObject" /> of each selected object
 /// if <see cref="M:Northwoods.Go.GoObject.CanView" /> is true, or call
 /// <see cref="M:Northwoods.Go.GoObject.RemoveSelectionHandles(Northwoods.Go.GoSelection)" /> otherwise.
 /// </summary>
 /// <seealso cref="M:Northwoods.Go.GoSelection.RemoveAllSelectionHandles" />
 public void AddAllSelectionHandles()
 {
     using (GoCollectionEnumerator goCollectionEnumerator = GetEnumerator())
     {
         while (goCollectionEnumerator.MoveNext())
         {
             GoObject current         = goCollectionEnumerator.Current;
             GoObject selectionObject = current.SelectionObject;
             if (selectionObject != null)
             {
                 if (current.CanView())
                 {
                     selectionObject.AddSelectionHandles(this, current);
                 }
                 else
                 {
                     selectionObject.RemoveSelectionHandles(this);
                 }
             }
         }
     }
 }