Ejemplo n.º 1
0
        public void GET_TREE(DevExpress.XtraTreeList.TreeList treeView)
        {
            treeView.AppendNode(new object[] { "Solution \'VisualStudioInspiredUIDemo\' (1 project)" }, -1, -1, -1, 3);      //0
            object[] o = new object[] { this.Name };
            DevExpress.XtraTreeList.Nodes.TreeListNode prjNode = treeView.AppendNode(o, -1, -1, -1, 4, this.GET_PS_ICON( )); //0

            //int icon;
            foreach (ProjectSetting.DataStoreElement dse in this.DataStores)
            {
                #region --- REMARKS ---
                //
                // Summary:
                //     Adds a DevExpress.XtraTreeList.Nodes.TreeListNode containing the specified values
                //     to the XtraTreeList.
                //
                // Parameters:
                //
                //   nodeData:
                //     An array of values or a System.Data.DataRow object, used to initialize the created
                //     node's cells.
                //
                //   parentNodeId:
                //     An integer value specifying the identifier of the parent node.
                //
                //   imageIndex:
                //     A zero-based index of the image displayed within the node.
                //
                //   selectImageIndex:
                //     A zero-based index of the image displayed within the node when it is focused
                //     or selected.
                //
                //   stateImageIndex:
                //     An integer value that specifies the index of the node's state image.
                //
                //   checkState:
                //     The node's check state.
                //
                //   tag:
                //     An object that contains information associated with the Tree List node. This
                //     value is assigned to the DevExpress.XtraTreeList.Nodes.TreeListNode.Tag property.
                //
                // Returns:
                //     A DevExpress.XtraTreeList.Nodes.TreeListNode object or descendant representing
                //     the added node.
                //
                #endregion
                dse.ADD_TRENODE(treeView, prjNode);
            }
            prjNode.Expand( );
        }
Ejemplo n.º 2
0
 // -------------------------------------------------------------------------
 public void ADD_TRENODE(DevExpress.XtraTreeList.TreeList treeView, DevExpress.XtraTreeList.Nodes.TreeListNode prjNode)
 {
     object[] oo = new object[] { this.Name };
     DevExpress.XtraTreeList.Nodes.TreeListNode dsNode = treeView.AppendNode(oo, prjNode.Id, -1, -1, this.GET_DS_ICON( ), this);
     if (this.IS_FIXED( ))
     {
         // FIXED SNAPSHOT...
         object[] ooo = new object[] { this.SnapshotFile };
         DevExpress.XtraTreeList.Nodes.TreeListNode child = treeView.AppendNode(ooo, dsNode.Id, -1, -1, this.GET_SS_ICON( ), this);
         dsNode.Expand( );
     }
     else
     {
         // DYNAMIC SNAPSHOT...
         object[] ooo = new object[] { this.GET_SSP_FILENAME() };
         DevExpress.XtraTreeList.Nodes.TreeListNode child = treeView.AppendNode(ooo, dsNode.Id, -1, -1, this.GET_SS_ICON( ));
         dsNode.Collapse( );
     }
 }