Example #1
0
        public virtual void NetworkPropertyChange(object sender, PropertyChangedEventArgs e, object value)
        {
            StatusChange change = StatusChange.GenericPropertyChange;

            try { change = (StatusChange)sender; } catch { }
            NetworkPropertyChangedEventHandler handler = NetworkChangeEvent;

            handler?.Invoke(this, new NetworkPropertyChangedEventArgs()
            {
                Change   = change,
                Property = e.PropertyName,
                Value    = value
            });
        }
Example #2
0
 public void AddEventHandler(NetworkPropertyChangedEventHandler eventHandler)
 {
     this.NetworkChangeEvent -= eventHandler;
     this.NetworkChangeEvent += eventHandler;
 }