Esempio 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();
 }
 /// <summary>
 /// This method inicializes the values.
 /// </summary>
 /// <param name="treeNodeLN">
 /// treeNode that contains the LN data that will be used to create them.
 /// </param>
 /// <param name="sCL">
 /// Main SCL class that will get the data selected.
 /// </param>
 /// <param name="lN">
 /// LN selected.
 /// </param>
 /// <param name="title">
 /// Title of the window.
 /// </param>
 public WindowTreeViewLNType(TreeNode treeNodeLN, SCL sCLObject, object lN, string title)
 {
     this.treeNodeLN        = treeNodeLN;
     this.scl.Configuration = sCLObject;
     this.lN = lN;
     // Calling InitializeComponent() is required for Windows Forms designer support.
     InitializeComponent();
     this.Text             = title;
     this.label1.ForeColor = Color.Blue;
     this.treeViewLNType   = new TreeViewLNType(this.treeNodeLN, this.scl.Configuration);
     this.treeLN.Nodes.Add(treeViewLNType.GetTreeNodeTypesLNs(this.lN));
     this.treeLN.Nodes[0].Expand();
     this.bandModify       = false;
     this.objectManagement = new ObjectManagement();
 }