using System; using System.ComponentModel; namespace OpenTap.Addin.Annotation { /// /// /// public class BindingListAttribute : Attribute, IAnnotation, INotifyPropertyChanged { #region OnPropertyChanged /// /// Standard PropertyChanged event object. /// public event PropertyChangedEventHandler PropertyChanged; /// /// Triggers the PropertyChanged event. /// /// string name of which property has been changed. public void OnPropertyChanged(string propertyName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); UserInput.NotifyChanged(this, propertyName); } #endregion /// /// /// public string BindingName { get; set; } /// /// /// public bool CanAdd { get; set; } /// /// /// /// /// public BindingListAttribute(string bindingName, bool canAdd = false) { this.BindingName = bindingName; this.CanAdd = canAdd; } /// /// /// /// public void Read(object source) { } /// /// /// /// public void Write(object source) { } } }