FRBDK/InstructionEditor/InstructionEditor/EditorLogic.cs
/// <summary>
/// Adds a Sprite to the currentSprites SpriteArray and visibly marks it as selected.
/// </summary>
/// <remarks>
/// This method should not be called for one Sprite when no Sprites are selected yet.  This should only
/// be called when multiple Sprites are going to be selected, or if a Sprite is already selected before
/// this is called.
/// </remarks>
/// <param name="spriteToSelect">Sprite to select.  Should not be null.</param>
Adds a Sprite to the currentSprites SpriteArray and visibly marks it as selected.
Adds a Sprite to the currentSprites SpriteArray and visibly marks it as selected .
public void SelectSpriteAdd<T>(T objectToAdd, IList<T> list) where T : PositionedObject, ICursorSelectable
        {
            if (list.Contains(objectToAdd) == false)
            {
                list.Add(objectToAdd);
            }
        }
public void SelectSpriteAdd < T > ( T objectToAdd , IList < T > list ) where T : PositionedObject , ICursorSelectable { if ( list . Contains ( objectToAdd ) == false ) { list . Add ( objectToAdd ) ; } }
Adds a Sprite to the currentSprites SpriteArray and visibly marks it as selected.
Adds a Sprite to the currentSprites SpriteArray and visibly marks it as selected .
objectToAdd
T
list
IList<T>
spriteToSelect
Sprite to select.  Should not be null.
Sprite to select . Should not be null .
remarks
This method should not be called for one Sprite when no Sprites are selected yet.  This should only
be called when multiple Sprites are going to be selected, or if a Sprite is already selected before
this is called.
This method should not be called for one Sprite when no Sprites are selected yet . This should only be called when multiple Sprites are going to be selected or if a Sprite is already selected before this is called .