示例#1
0
        //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;
        }
示例#2
0
        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;
        }
示例#3
0
        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;
            }
        }
示例#4
0
 public OnPatternRemovedEventArgs(RestServerData restServer, EndpointData endpoint, PatternData pattern)
 {
     RestServer = restServer;
     Endpoint   = endpoint;
     Pattern    = pattern;
 }