Esempio n. 1
0
 public void OnPropertyChanged(object source, PropertyChangedEventArgs args)
 {
     if (objectsToNotify != null && OnPropertyChangedAction != null)
     {
         if (BindingDefinition.MustNotify(DataSource, source, args))
         {
             OnPropertyChangedAction(this, OnPropertyChangedActionArgs);
         }
     }
 }
Esempio n. 2
0
        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);
                }
            }
        }