//public PropertyChangedEventArgs PropertyChanged { get; private set; } public OnPatternChangedEventArgs(RestServerData restServer, EndpointData endpoint, PatternData pattern, PropertyChangedEventArgs propertyChanged) : base(propertyChanged.PropertyName) { RestServer = restServer; Endpoint = endpoint; Pattern = pattern; //PropertyChanged = propertyChanged; }
public void AddPattern(PatternData data) { data.PropertyChanged += Pattern_PropertyChanged; m_Patterns.Add(data); OnPatternAdded?.Invoke(this, new OnPatternAddedEventArgs(m_Owner, this, data)); m_IsDirty = true; }
public void RemovePattern(PatternData data) { if (m_Patterns.Contains(data)) { data.PropertyChanged -= Pattern_PropertyChanged; m_Patterns.Remove(data); OnPatternRemoved?.Invoke(this, new OnPatternRemovedEventArgs(m_Owner, this, data)); m_IsDirty = true; } }
public OnPatternRemovedEventArgs(RestServerData restServer, EndpointData endpoint, PatternData pattern) { RestServer = restServer; Endpoint = endpoint; Pattern = pattern; }