Ejemplo n.º 1
0
        /// <summary>
        /// Adds a new parameter
        /// </summary>
        /// <param name="function"></param>
        public ParameterTreeNode AddParameter(DataDictionary.Parameter parameter)
        {
            Item.appendParameters(parameter);
            ParameterTreeNode retVal = new ParameterTreeNode(parameter);

            Nodes.Add(retVal);

            return(retVal);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Create structure based on the subsystem structure
        /// </summary>
        /// <param name="sourceNode"></param>
        public override void AcceptDrop(BaseTreeNode sourceNode)
        {
            base.AcceptDrop(sourceNode);

            if (sourceNode is ParameterTreeNode)
            {
                ParameterTreeNode node      = sourceNode as ParameterTreeNode;
                Parameter         parameter = node.Item;
                node.Delete();
                Item.appendParameters(parameter);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Create structure based on the subsystem structure
        /// </summary>
        /// <param name="SourceNode"></param>
        public override void AcceptDrop(BaseTreeNode SourceNode)
        {
            base.AcceptDrop(SourceNode);

            if (SourceNode is ParameterTreeNode)
            {
                ParameterTreeNode        node      = SourceNode as ParameterTreeNode;
                DataDictionary.Parameter parameter = node.Item;
                node.Delete();
                AddParameter(parameter);
            }
        }