Nez.Portable/UI/Utils/Selection.cs
/// <summary>
/// Adds the item to the selection
/// </summary>
/// <param name="item">Item.</param>
Adds the item to the selection
Adds the item to the selection
public void add(T item)
        {
            Assert.isNotNull(item, "item cannot be null");
            if (!selected.addIfNotPresent(item))
                return;
            if (programmaticChangeEvents && fireChangeEvent())
            {
                selected.Remove(item);
            }
            else
            {
                lastSelected = item;
                changed();
            }
        }
public void add ( T item ) { Assert . isNotNull ( item , " " ) ; if ( ! selected . addIfNotPresent ( item ) ) return ; if ( programmaticChangeEvents && fireChangeEvent ( ) ) { selected . Remove ( item ) ; } else { lastSelected = item ; changed ( ) ; } }
Adds the item to the selection
Adds the item to the selection
item
T
None