public BuildingBlockSelectionEditBinder(IPropertyBinderNotifier <TObjectType, TBuildingBlock> propertyBinder, UxBuildingBlockSelection buildingBlockSelection) : base(propertyBinder) { _buildingBlockSelection = buildingBlockSelection; _buildingBlockSelection.BuildingBlockSelectionChanged += buildingBlockSelectionChanged; _buildingBlockSelection.InitializeFor <TBuildingBlock>(); }
public TextEditElementBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder, TextEdit textEdit) : base(propertyBinder, textEdit) { _textBox.EditValueChanged += (o, e) => ValueInControlChanging(); _textBox.Validating += (o, e) => ValueInControlChanged(); _textBox.Properties.ConfigureWith(typeof(TPropertyType)); _textBox.CustomDisplayText += customDisplayText; }
public ParameterDTOEditBinder(IPropertyBinderNotifier <TObjectType, IParameterDTO> propertyBinder, UxParameterDTOEdit parameterDTOEdit) : base(propertyBinder) { _parameterDTOEdit = parameterDTOEdit; _parameterDTOEdit.Changing += ValueInControlChanging; _parameterDTOEdit.Changed += () => NotifyChange(); }
protected ElementBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder, IElementBinderValidator <TObjectType, TPropertyType> elementBinderValidator, IFormatterConfigurator <TObjectType, TPropertyType> formatterConfigurator) { _propertyBinder = propertyBinder; _elementBinderValidator = elementBinderValidator; FormatterConfigurator = formatterConfigurator; }
public TokenEditBinder(IPropertyBinderNotifier <TObjectType, IEnumerable <TValue> > propertyBinder, TokenEdit tokenEdit) : base(propertyBinder) { _tokenEdit = tokenEdit; _displayFor = x => x.ToString(); _onSelectedItemChanged = delegate { }; _tokenEdit.SelectedItemsChanged += selectedItemsChanged; _tokenEdit.Properties.EditValueType = TokenEditValueType.List; }
public ValueEditBinder(IPropertyBinderNotifier <TObject, TValueEditDTO> propertyBinder, ValueEdit valueEdit) : base(propertyBinder) { _valueEdit = valueEdit; _valueEdit.Changing += ValueInControlChanging; _valueEdit.ValueChanged += (o, e) => NotifyChange(); _valueEdit.UnitChanged += (o, e) => NotifyChange(); _valueEdit.Changed += NotifyChange; }
protected override void Context() { _source = new AnImplementationWithEvents { FirstName = "toto" }; var property = typeof(AnImplementationWithEvents).GetProperty("LastName"); sut = new PropertyBinderNotifier <IAnInterface, string>(property); _otherPropertyBinder = new PropertyBinderNotifier <IAnInterface, string>(property); sut.AddValueChangedListener(_source, onValueChanged); }
public MRUEditElementBinder(IPropertyBinderNotifier <TObjectType, string> propertyBinder, MRUEdit mruEdit) : base(propertyBinder, mruEdit) { _mruEdit = mruEdit; }
protected LabelBinderBase(IPropertyBinderNotifier <TObject, TPropertyType> propertyBinder, TControlType label) : base(propertyBinder) { _label = label; }
public ControlEnableBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder, Control control) : base(propertyBinder, control) { }
public LabelBinder(IPropertyBinderNotifier <TObject, TPropertyType> propertyBinder, Label label) : base(propertyBinder, label) { }
public ListBoxControlElementBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder, ListBoxControl listBoxControl) : base(propertyBinder) { _listBoxControl = listBoxControl; }
protected ConversionElementBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder, Control control) : base(propertyBinder) { _control = control; _control.EnabledChanged += (o, e) => ValueInControlChanged(); }
public MemoEditElementBinder(IPropertyBinderNotifier <TObjectType, IEnumerable <string> > propertyBinder, MemoEdit memoEdit) : base(propertyBinder) { _memoEdit = memoEdit; _memoEdit.EditValueChanged += (o, e) => ValueInControlChanging(); _memoEdit.Validating += (o, e) => ValueInControlChanged(); }
public NullableColorEditElementBinder(IPropertyBinderNotifier <TypeToBindTo, Color?> propertyBinder, ColorEdit colorEdit) : base(propertyBinder) { _colorEdit = colorEdit; _colorEdit.ColorChanged += (o, e) => ValueInControlChanged(); }
protected TextBoxBinderBase(IPropertyBinderNotifier <TObject, TPropertyType> propertyBinder, TControlType textBox) : base(propertyBinder) { _textBox = textBox; }
protected ElementBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder) : this(propertyBinder, new ElementBinderValidator <TObjectType, TPropertyType>(), new FormatterConfigurator <TObjectType, TPropertyType>()) { }
public ComboBoxEditElementBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder, ComboBoxEdit comboBox) : base(propertyBinder) { _comboBox = comboBox; _comboBox.Properties.TextEditStyle = TextEditStyles.DisableTextEditor; }
public ComboBoxElementBinder(IPropertyBinderNotifier <TObject, TPropertyType> propertyBinder, ComboBox comboBox) : base(propertyBinder) { _comboBox = comboBox; _comboBox.DropDownStyle = ComboBoxStyle.DropDownList; }
protected ListElementBinder(IPropertyBinderNotifier <TObject, TPropertyType> propertyBinder) : base(propertyBinder) { }
protected CellBinder(PropertyInfo propertyInfo, IBinder parentBinder) { _propertyBinder = new PropertyBinderNotifier <TObjectType, TPropertyType>(propertyInfo); _parentBinder = parentBinder; }
public ImageComboBoxEditElementBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder, ImageComboBoxEdit imageComboBox) : base(propertyBinder, imageComboBox) { _imageComboBox = imageComboBox; }
public TextBoxBinder(IPropertyBinderNotifier <TObject, TPropertyType> propertyBinder, TextBox textBox) : base(propertyBinder, textBox) { _textBox.Validating += (o, e) => ValueInControlChanged(); _textBox.TextChanged += (o, e) => ValueInControlChanging(); }
public CheckEditElementBinder(IPropertyBinderNotifier <TObjectType, bool> propertyBinder, CheckEdit checkEdit) : base(propertyBinder) { _checkEdit = checkEdit; _checkEdit.EditValueChanged += (o, e) => ValueInControlChanging(); _checkEdit.CheckedChanged += (o, e) => ValueInControlChanged(); }