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);
        }
Exemple #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);
        }
Exemple #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);
		}
		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);
		}
		protected virtual void CloneProperties(FlexibleProperty flexProp)
		{
			flexProp._selectedEditor= _selectedEditor;
		}
 protected virtual void CloneProperties(FlexibleProperty flexProp)
 {
     flexProp._selectedEditor = _selectedEditor;
 }
		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);
		}
Exemple #11
0
        public override string GetStringValue(object obj)
        {
            FlexibleProperty flexible = (FlexibleProperty)obj;

            return(flexible.GetStringValue());
        }
Exemple #12
0
        public override Type GetSelectedEditorType(object obj)
        {
            FlexibleProperty flexible = (FlexibleProperty)obj;

            return(flexible.GetSelectedEditorType());
        }
Exemple #13
0
        public override EditorType[] GetEditorTypes(object obj)
        {
            FlexibleProperty flexible = (FlexibleProperty)obj;

            return(flexible.GetEditorTypes());
        }