Example #1
0
 public BuildingBlockSelectionEditBinder(IPropertyBinderNotifier <TObjectType, TBuildingBlock> propertyBinder, UxBuildingBlockSelection buildingBlockSelection)
     : base(propertyBinder)
 {
     _buildingBlockSelection = buildingBlockSelection;
     _buildingBlockSelection.BuildingBlockSelectionChanged += buildingBlockSelectionChanged;
     _buildingBlockSelection.InitializeFor <TBuildingBlock>();
 }
Example #2
0
 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;
 }
Example #3
0
        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;
 }
Example #5
0
 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;
        }
Example #7
0
        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);
        }
Example #8
0
 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();
 }
Example #14
0
 public MemoEditElementBinder(IPropertyBinderNotifier <TObjectType, IEnumerable <string> > propertyBinder, MemoEdit memoEdit) : base(propertyBinder)
 {
     _memoEdit = memoEdit;
     _memoEdit.EditValueChanged += (o, e) => ValueInControlChanging();
     _memoEdit.Validating       += (o, e) => ValueInControlChanged();
 }
Example #15
0
 public NullableColorEditElementBinder(IPropertyBinderNotifier <TypeToBindTo, Color?> propertyBinder, ColorEdit colorEdit)
     : base(propertyBinder)
 {
     _colorEdit = colorEdit;
     _colorEdit.ColorChanged += (o, e) => ValueInControlChanged();
 }
Example #16
0
 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>())
 {
 }
Example #18
0
 public ComboBoxEditElementBinder(IPropertyBinderNotifier <TObjectType, TPropertyType> propertyBinder, ComboBoxEdit comboBox) : base(propertyBinder)
 {
     _comboBox = comboBox;
     _comboBox.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
 }
Example #19
0
 public ComboBoxElementBinder(IPropertyBinderNotifier <TObject, TPropertyType> propertyBinder, ComboBox comboBox) : base(propertyBinder)
 {
     _comboBox = comboBox;
     _comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
 }
Example #20
0
 protected ListElementBinder(IPropertyBinderNotifier <TObject, TPropertyType> propertyBinder) : base(propertyBinder)
 {
 }
Example #21
0
 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;
 }
Example #23
0
 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();
 }