public void OnPropertyChanged(object source, PropertyChangedEventArgs args) { if (objectsToNotify != null && OnPropertyChangedAction != null) { if (BindingDefinition.MustNotify(DataSource, source, args)) { OnPropertyChangedAction(this, OnPropertyChangedActionArgs); } } }
public void OnPropertyChanged(object source, PropertyChangedEventArgs args) { if (objectsToNotify != null && OnPropertyChangedAction != null) { if (BindingDefinition.MustNotify(DataSource, source, args)) { OnPropertyChangedAction(this, OnPropertyChangedActionArgs); } } if (button != null && EnableProperty != null && args.PropertyName.Equals(excelBindingDefinitionButton.EnablePropertyInfo.Name)) { if (EnablePropertyGet.IsStatic) { button.Enable = (bool)EnablePropertyGet.Invoke(null, null); } else { button.Enable = (bool)EnablePropertyGet.Invoke(source, null); } } }