src/Misc/EFTools/XmlCore/UI/Selection.cs
/// <summary>
///     Helper method that subscribes to selection change events.
/// </summary>
/// <param name="context">The editing context to listen to.</param>
/// <param name="handler">The handler to be invoked when the selection changes.</param>
Helper method that subscribes to selection change events.
Helper method that subscribes to selection change events .
internal static void Subscribe<T>(EditingContext context, SubscribeContextCallback<T> handler) where T : Selection
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (handler == null)
            {
                throw new ArgumentNullException("handler");
            }
            context.Items.Subscribe(handler);
        }
internal static void Subscribe < T > ( EditingContext context , SubscribeContextCallback < T > handler ) where T : Selection { if ( context == null ) { throw new ArgumentNullException ( " " ) ; } if ( handler == null ) { throw new ArgumentNullException ( " " ) ; } context . Items . Subscribe ( handler ) ; }
Helper method that subscribes to selection change events.
Helper method that subscribes to selection change events .
context
EditingContext
The editing context to listen to.
The editing context to listen to .
handler
SubscribeContextCallback<T>
The handler to be invoked when the selection changes.
The handler to be invoked when the selection changes .