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); } } }
/// <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; }