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