示例#1
0
        public virtual void OnSwagItemChanged(SwagItemBase swagItem, PropertyChangedEventArgs e)
        {
            SwagSetting swagSetting = (SwagSetting)swagItem;
            PropertyChangedExtendedEventArgs exArgs = (PropertyChangedExtendedEventArgs)e;

            SwagItemChanged?.Invoke(this, new SwagItemChangedEventArgs()
            {
                SwagItem            = swagItem,
                PropertyChangedArgs = e,
                Message             = $"{swagSetting.Path}({exArgs.PropertyName})\n\t{exArgs.OldValue} => {exArgs.NewValue}"
            });
            Parent?.OnSwagItemChanged(swagItem, e);
        }
示例#2
0
 private void SwagItem_PropertyChangedExtended(object sender, PropertyChangedExtendedEventArgs e)
 {
     Parent?.OnSwagItemChanged(this, e);
 }