Пример #1
0
        public object Clone()
        {
            FlexibleProperty flexProp = (FlexibleProperty)GetType().InvokeMember(string.Empty, System.Reflection.BindingFlags.CreateInstance, null, null, new object[0]);

            CloneProperties(flexProp);

            return(flexProp);
        }
        protected override void CloneProperties(FlexibleProperty flexProp)
        {
            FlexiblePropertyBoolean prop = (FlexiblePropertyBoolean)flexProp;

            prop._value            = _value;
            prop._definitionName   = _definitionName;
            prop._definitionMember = _definitionMember;

            base.CloneProperties(flexProp);
        }
Пример #3
0
        protected override void CloneProperties(FlexibleProperty flexProp)
        {
            FlexiblePropertyEnum prop = (FlexiblePropertyEnum)flexProp;

            prop._enumType         = _enumType;
            prop._value            = _value;
            prop._definitionName   = _definitionName;
            prop._definitionMember = _definitionMember;

            base.CloneProperties(flexProp);
        }
        protected override void CloneProperties(FlexibleProperty flexProp)
        {
            FlexiblePropertyFloat prop = (FlexiblePropertyFloat)flexProp;

            prop._min              = _min;
            prop._max              = _max;
            prop._definitionName   = _definitionName;
            prop._definitionMember = _definitionMember;

            base.CloneProperties(flexProp);
        }
Пример #5
0
        public override object FromStringValue(Type type, string str)
        {
            if (!type.IsSubclassOf(typeof(FlexibleProperty)))
            {
                throw new Exception(Resources.ExceptionDesignerAttributeInvalidType);
            }

            FlexibleProperty flexible = (FlexibleProperty)type.InvokeMember(string.Empty, System.Reflection.BindingFlags.CreateInstance, null, null, new object[0]);

            flexible.FromStringValue(str);

            return(flexible);
        }
		protected override void CloneProperties(FlexibleProperty flexProp)
		{
			FlexiblePropertyBoolean prop= (FlexiblePropertyBoolean)flexProp;
			prop._value= _value;
			prop._definitionName= _definitionName;
			prop._definitionMember= _definitionMember;

			base.CloneProperties(flexProp);
		}
Пример #7
0
		protected override void CloneProperties(FlexibleProperty flexProp)
		{
			FlexiblePropertyFloat prop= (FlexiblePropertyFloat)flexProp;
			prop._min= _min;
			prop._max= _max;
			prop._definitionName= _definitionName;
			prop._definitionMember= _definitionMember;

			base.CloneProperties(flexProp);
		}
Пример #8
0
		protected virtual void CloneProperties(FlexibleProperty flexProp)
		{
			flexProp._selectedEditor= _selectedEditor;
		}
Пример #9
0
 protected virtual void CloneProperties(FlexibleProperty flexProp)
 {
     flexProp._selectedEditor = _selectedEditor;
 }
Пример #10
0
		protected override void CloneProperties(FlexibleProperty flexProp)
		{
			FlexiblePropertyEnum prop= (FlexiblePropertyEnum)flexProp;
			prop._enumType= _enumType;
			prop._value= _value;
			prop._definitionName= _definitionName;
			prop._definitionMember= _definitionMember;

			base.CloneProperties(flexProp);
		}
Пример #11
0
        public override string GetStringValue(object obj)
        {
            FlexibleProperty flexible = (FlexibleProperty)obj;

            return(flexible.GetStringValue());
        }
Пример #12
0
        public override Type GetSelectedEditorType(object obj)
        {
            FlexibleProperty flexible = (FlexibleProperty)obj;

            return(flexible.GetSelectedEditorType());
        }
Пример #13
0
        public override EditorType[] GetEditorTypes(object obj)
        {
            FlexibleProperty flexible = (FlexibleProperty)obj;

            return(flexible.GetEditorTypes());
        }