/// <summary>
        /// Adds a component to the list of created objects.
        /// </summary>
        void AddComponent(string name, object obj)
        {
            IComponent component = obj as IComponent;

            if (component != null)
            {
                componentCreator.Add(component, name);
            }
        }
        /// <summary>
        /// Adds a component to the list of created objects.
        /// </summary>
        void AddComponent(string name, object obj)
        {
            IComponent component = obj as IComponent;

            if (component != null)
            {
                string variableName = PythonControlFieldExpression.GetVariableName(name);
                componentCreator.Add(component, variableName);
            }
        }