示例#1
0
        public void AddParameterToProperty()
        {
            _parameters = MyArray <ParameterToProperty> .Resize(_parameters, _parameters.Length + 1);

            ParameterToProperty parameterToProperty = new ParameterToProperty();

            parameterToProperty._envelope            = new Envelope();
            parameterToProperty._envelope._points    = new Point[2];
            parameterToProperty._envelope._points[0] = Point.Alloc(0f, 0f, CurveTypes.Linear);
            parameterToProperty._envelope._points[1] = Point.Alloc(1f, 1f, CurveTypes.Linear);
            _parameters[_parameters.Length - 1]      = parameterToProperty;
        }
示例#2
0
        public void DeleteParameterToProperty(ParameterToProperty parameterToProperty)
        {
            for (int i = 0; i < _parameters.Length; i++)
            {
                if (_parameters[i] == parameterToProperty)
                {
                    _parameters = MyArray <ParameterToProperty> .RemoveAt(_parameters, i);

                    break;
                }
            }
        }