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;
        }
Beispiel #2
0
 protected void OnStateChanged(IComponentFeatureStateCollection oldState, IComponentFeatureStateCollection newState)
 {
     StateChanged?.Invoke(this, new ComponentFeatureStateChangedEventArgs(oldState, newState));
 }
Beispiel #3
0
 protected void OnStateChanged(IComponentFeatureStateCollection oldState)
 {
     OnStateChanged(oldState, GetState());
 }