Beispiel #1
0
        /// <summary>
        /// Add an enumeration value to the tree
        /// </summary>
        /// <param name="name">The name of the value</param>
        /// <param name="value">The value itself</param>
        /// <returns>The added value object</returns>
        public DataValue AddValue(string name, Enum value)
        {
            DataValue dataValue = new EnumDataValue(name, value);

            AddSubNode(dataValue);

            return(dataValue);
        }
        public void SetNode(DataNode node, DataNode selected, Color color, bool readOnly)
        {
            _node = node as EnumDataValue;
            _readOnly = readOnly;

            if (_isLoaded)
            {
                SetupFrame();
            }
        }
Beispiel #3
0
        /// <summary>
        /// Add an enumeration value to the tree
        /// </summary>
        /// <param name="name">The name of the value</param>
        /// <param name="value">The value itself</param>
        /// <returns>The added value object</returns>
        public DataValue AddValue(string name, Enum value)
        {
            DataValue dataValue = new EnumDataValue(name, value);
            AddSubNode(dataValue);

            return dataValue;
        }