public BindingBase(Object target, String targetProperty, INotifyPropertyChanged source, String sourceProperty, BindingMode mode, BindingSettingsBase settings) { if (null == target) { throw new ArgumentNullException("target"); } if (string.IsNullOrEmpty(targetProperty)) { throw new ArgumentException("targetProperty is null or empty"); } if (null == source) { throw new ArgumentNullException("source"); } if (string.IsNullOrEmpty(sourceProperty)) { throw new ArgumentException("sourceProperty is null or empty"); } // this.target = target; this.targetProperty = targetProperty; this.source = source; this.sourceProperty = sourceProperty; this.mode = mode; this.bound = false; this.settings = settings; }
static BindingSettingsBase() { DEFAULT_SETTINGS = new BindingSettingsBase(); DEFAULT_SETTINGS.InitializeDefault(); }
public BindingBase( Object target, String targetProperty, INotifyPropertyChanged source, String sourceProperty, BindingMode mode, BindingSettingsBase settings ) { if (null == target) throw new ArgumentNullException( "target" ); if (string.IsNullOrEmpty(targetProperty)) throw new ArgumentException( "targetProperty is null or empty" ); if (null == source) throw new ArgumentNullException( "source" ); if (string.IsNullOrEmpty( sourceProperty )) throw new ArgumentException( "sourceProperty is null or empty" ); // this.target = target; this.targetProperty = targetProperty; this.source = source; this.sourceProperty = sourceProperty; this.mode = mode; this.bound = false; this.settings = settings; }