Exemplo n.º 1
0
        public static ParameterDTOEditBinder <TObjectType> To <TObjectType>(this IScreenToElementBinder <TObjectType, IParameterDTO> screenToElementBinder, UxParameterDTOEdit parameterDTOEdit)
        {
            var element = new ParameterDTOEditBinder <TObjectType>(screenToElementBinder.PropertyBinder, parameterDTOEdit);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static NullableColorEditElementBinder <TObject> To <TObject>(this IScreenToElementBinder <TObject, Color?> screenToElementBinder, ColorEdit colorEdit)
        {
            var element = new NullableColorEditElementBinder <TObject>(screenToElementBinder.PropertyBinder, colorEdit);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
Exemplo n.º 3
0
        public static TokenEditBinder <TObjectType, TValue> To <TObjectType, TValue>(this IScreenToElementBinder <TObjectType, IEnumerable <TValue> > screenToElementBinder, TokenEdit tokenEditControl)
        {
            var element = new TokenEditBinder <TObjectType, TValue>(screenToElementBinder.PropertyBinder, tokenEditControl);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static CheckEditElementBinder <TObject> To <TObject>(this IScreenToElementBinder <TObject, bool> screenToElementBinder, CheckEdit checkEdit)
        {
            var element = new CheckEditElementBinder <TObject>(screenToElementBinder.PropertyBinder, checkEdit);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static MemoEditElementBinder <TObject> To <TObject>(this IScreenToElementBinder <TObject, IEnumerable <string> > screenToElementBinder, MemoEdit memoEdit)
        {
            var element = new MemoEditElementBinder <TObject>(screenToElementBinder.PropertyBinder, memoEdit);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static IElementBinder <TObject, TValueEditDTO> To <TObject, TValueEditDTO>(
            this IScreenToElementBinder <TObject, TValueEditDTO> screenToElementBinder, ValueEdit valueEdit) where TValueEditDTO : ValueEditDTO
        {
            var element = new ValueEditBinder <TObject, TValueEditDTO>(screenToElementBinder.PropertyBinder, valueEdit);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static MRUEditElementBinder <TObject> To <TObject>(this IScreenToElementBinder <TObject, string> screenToElementBinder,
                                                                  MRUEdit mruEdit)
        {
            var element = new MRUEditElementBinder <TObject>(screenToElementBinder.PropertyBinder, mruEdit);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
Exemplo n.º 8
0
        public static BuildingBlockSelectionEditBinder <TObjectType, TBuildingBlock> To <TObjectType, TBuildingBlock>(this IScreenToElementBinder <TObjectType, TBuildingBlock> screenToElementBinder,
                                                                                                                      UxBuildingBlockSelection buildingBlockSelection)
            where TBuildingBlock : IPKSimBuildingBlock
        {
            var element = new BuildingBlockSelectionEditBinder <TObjectType, TBuildingBlock>(screenToElementBinder.PropertyBinder, buildingBlockSelection);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static IControlEnableBinder <TObject, TPropertyType> ToEnableOf <TObject, TPropertyType>(this IScreenToElementBinder <TObject, TPropertyType> screenToElementBinder, Control simpleButton)
        {
            var element = new ControlEnableBinder <TObject, TPropertyType>(screenToElementBinder.PropertyBinder, simpleButton);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static IElementBinder <TObject, TPropertyType> To <TObject, TPropertyType>(this IScreenToElementBinder <TObject, TPropertyType> screenToElementBinder, Label label)
        {
            var element = new LabelBinder <TObject, TPropertyType>(screenToElementBinder.PropertyBinder, label);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static IListElementBinder <TObject, TPropertyType> To <TObject, TPropertyType>(this IScreenToElementBinder <TObject, TPropertyType> screenToElementBinder, ComboBox comboBox)
        {
            var element = new ComboBoxElementBinder <TObject, TPropertyType>(screenToElementBinder.PropertyBinder, comboBox);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static IElementBinder <TObject, TPropertyType> To <TObject, TPropertyType>(this IScreenToElementBinder <TObject, TPropertyType> screenToElementBinder, TextBox textbox)
        {
            var element = new TextBoxBinder <TObject, TPropertyType>(screenToElementBinder.PropertyBinder, textbox);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static ImageComboBoxEditElementBinder <TObject, TProperty> To <TObject, TProperty>(this IScreenToElementBinder <TObject, TProperty> screenToElementBinder,
                                                                                                  ImageComboBoxEdit imageComboBoxEdit)
        {
            var element = new ImageComboBoxEditElementBinder <TObject, TProperty>(screenToElementBinder.PropertyBinder, imageComboBoxEdit);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static TextEditElementBinder <TObject, TProperty> To <TObject, TProperty>(this IScreenToElementBinder <TObject, TProperty> screenToElementBinder, TextEdit textbox)
        {
            var element = new TextEditElementBinder <TObject, TProperty>(screenToElementBinder.PropertyBinder, textbox);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }
        public static ListBoxControlElementBinder <TObject, TProperty> To <TObject, TProperty>(this IScreenToElementBinder <TObject, TProperty> screenToElementBinder,
                                                                                               ListBoxControl listBoxControl)
        {
            var element = new ListBoxControlElementBinder <TObject, TProperty>(screenToElementBinder.PropertyBinder, listBoxControl);

            screenToElementBinder.ScreenBinder.AddElement(element);
            return(element);
        }