コード例 #1
0
        private void InitList()
        {
            _list = new List <IPropertyExpression>();

            //drawobj
            string[] names = DrawObj.GetPropertyNames();
            int      count = names.Length;

            for (int i = 0; i < count; i++)
            {
                AddParameter(names[i]);
            }

            //drawvector
            if (_container.IsVector)
            {
                names = DrawVector.GetPropertyNames();
                count = names.Length;
                for (int i = 0; i < count; i++)
                {
                    AddParameter(names[i]);
                }
            }

            //draw child
            if (_container.PropertyNames != null)
            {
                count = _container.PropertyNames.Length;
                for (int i = 0; i < count; i++)
                {
                    AddParameter(_container.PropertyNames[i]);
                }
            }
        }
コード例 #2
0
        private static void InitPropertyDict()
        {
            //drawobj
            int count = DrawObj.GetPropertyNames().Length;

            for (int i = 0; i < count; i++)
            {
                _propertyIndexDict.Add(DrawObj.GetPropertyNames()[i], new PropertyIndex((int)DrawType.Obj, i));
            }

            //drawvector
            count = DrawVector.GetPropertyNames().Length;
            for (int i = 0; i < count; i++)
            {
                _propertyIndexDict.Add(DrawVector.GetPropertyNames()[i], new PropertyIndex((int)DrawType.Vector, i));
            }

            //drawtext
            count = DrawText.GetPropertyNames().Length;
            for (int i = 0; i < count; i++)
            {
                _propertyIndexDict.Add(DrawText.GetPropertyNames()[i], new PropertyIndex((int)DrawType.Text, i));
            }

            //todo add control:variable
        }