Exemplo n.º 1
0
        private void CreatingDependenciesLN(SCL sCL, tAnyLN anyLN, TreeNode nodeAnyLN)
        {
            bool band = false;
            int  i    = 0;

            for (; sCL.DataTypeTemplates != null && sCL.DataTypeTemplates.LNodeType != null && i < sCL.DataTypeTemplates.LNodeType.Length; i++)
            {
                if (sCL.DataTypeTemplates.LNodeType[i].id.Equals(anyLN.lnType))
                {
                    band = true;
                    break;
                }
            }
            //Español: Se hace un cargado de los valore que conforman al LNodeType 20/11/2009
            if (band)
            {
                TreeViewLNType treeViewLNType = new TreeViewLNType(nodeAnyLN, sCL);
                treeViewLNType.ReloadLNType(anyLN);
                treeViewLNType.EmptyTreeNodeLNType(false);
            }
            //Español: Se hace una creación de los valore que conforman al LNodeType 20/11/2009
            else
            {
                TreeViewLNType treeViewLNType = new TreeViewLNType(nodeAnyLN, sCL);
                treeViewLNType.GetTreeNodeTypesLNs(anyLN);
                treeViewLNType.EmptyTreeNodeLNType(false);
            }
        }
 /// <summary>
 /// This method refresh the main SCL Tree using the values of the data selected on the LN specified.
 /// </summary>
 public void ReloadLNType()
 {
     this.bandModify = true;
     this.treeLN.Nodes.Clear();
     this.treeViewLNType = new TreeViewLNType(this.treeNodeLN, this.scl.Configuration);
     this.treeLN.Nodes.Add(treeViewLNType.ReloadLNType(this.lN));
     this.treeLN.Nodes[0].Expand();
 }