Exemplo n.º 1
0
 public void SetComp(IDPath nodeStop)
 {
     if (!string.IsNullOrEmpty(nodeStop.Text))
     {
         string id = _mpIDCtl.BuildFullID(BuildID(nodeStop).TrimStart(',', '('));
         if (U.ComponentExists(id))
         {
             nodeStop.Comp = U.GetComponent(id);
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Inserts a path node just before last node
        /// </summary>
        /// <param name="text"></param>
        public void InsertPathNode(string text)
        {
            IDPath newPathNode = new IDPath(_mpIDCtl, this)
            {
                Text = text
            };

            _list.Insert(_list.Count - 1, newPathNode);
            SetComp(newPathNode);
            _list.Last().IsLiteral = false;
        }