public ComponentFeatureStateChangedEventArgs(IComponentFeatureStateCollection oldState, IComponentFeatureStateCollection newState)
        {
            if (oldState == null)
            {
                throw new ArgumentNullException(nameof(oldState));
            }
            if (newState == null)
            {
                throw new ArgumentNullException(nameof(newState));
            }

            OldState = oldState;
            NewState = newState;
        }
Example #2
0
 protected void OnStateChanged(IComponentFeatureStateCollection oldState, IComponentFeatureStateCollection newState)
 {
     StateChanged?.Invoke(this, new ComponentFeatureStateChangedEventArgs(oldState, newState));
 }
Example #3
0
 protected void OnStateChanged(IComponentFeatureStateCollection oldState)
 {
     OnStateChanged(oldState, GetState());
 }