当前位置: 首页>>代码示例>>C#>>正文


C# DevExpress.AppendNode方法代码示例

本文整理汇总了C#中DevExpress.AppendNode方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.AppendNode方法的具体用法?C# DevExpress.AppendNode怎么用?C# DevExpress.AppendNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DevExpress的用法示例。


在下文中一共展示了DevExpress.AppendNode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateNode

        private void CreateNode(DevExpress.XtraTreeList.TreeList tl)
        {
            tl.BeginUnboundLoad();
            // Create a root node
            DevExpress.XtraTreeList.Nodes.TreeListNode parentForRootNodes = null;

            DevExpress.XtraTreeList.Nodes.TreeListNode rootNode2 = tl.AppendNode(new object[] { "Thiết bị quản lý theo số lượng", 0 }, parentForRootNodes);

            DevExpress.XtraTreeList.Nodes.TreeListNode rootNode = tl.AppendNode(new object[] { "Thiết bị quản lý theo cá thể", 1 }, parentForRootNodes);
            // Create a child for a root Node
            tl.AppendNode(new object[] { "Thiết bị đang được sử dụng", 2 }, rootNode);
            tl.AppendNode(new object[] { "Thiết bị chưa được sử dụng", 3 }, rootNode);

            tl.EndUnboundLoad();
        }
开发者ID:quocdunginfo,项目名称:QuanLyTaiSan,代码行数:15,代码来源:ucQuanLyThietBi_Control.cs

示例2: LoadDefaultNodes

        public static void LoadDefaultNodes(DevExpress.XtraTreeList.TreeList Tree, NICSQLTools.Views.Main.MainTilesFrm MainFrm)
        {
            Tree.Nodes.Clear();
            //NICSQLTools.Forms.Main.MainTilesFrm MainFrm = (NICSQLTools.Forms.Main.MainTilesFrm)Parent.Parent.Parent;

            Tree.BeginUnboundLoad();

            // Create a root node .
            TreeListNode RootNode = Tree.AppendNode(new object[] { "Main", false, false, false, false, "Main" }, 0); ;

            //TreeListNode RootEditorNode = Tree.AppendNode(new object[] { "Editors", false, false, false, false }, RootNode);
            //TreeListNode RootQueriesNode = Tree.AppendNode(new object[] { "Queries", false, false, false, false }, RootNode);
            //TreeListNode RootRulesNode = Tree.AppendNode(new object[] { "Rules", false, false, false, false }, RootNode);
            //TreeListNode RootReportsNode = Tree.AppendNode(new object[] { "Reports", false, false, false, false }, RootNode);
            //TreeListNode RootDashBoardNode = Tree.AppendNode(new object[] { "DashBoard", false, false, false, false }, RootNode);

            ExtractTilesFromTileContainer(MainFrm.tileContainerMain, RootNode);

            ////RootEditorNode.Tag = "root"; RootQueriesNode.Tag = "root"; RootRulesNode.Tag = "root"; RootReportsNode.Tag = "root"; RootDashBoardNode.Tag = "root";

            //foreach (DevExpress.XtraBars.Docking2010.Views.WindowsUI.Tile tile in MainFrm.tileContainerEditors.Items)
            //    Tree.AppendNode(new object[] { tile.Document.Caption, false, false, false, false, tile.Document.ControlName }, RootEditorNode);
            //foreach (DevExpress.XtraBars.Docking2010.Views.WindowsUI.Tile tile in MainFrm.tileContainerQueries.Items)
            //    Tree.AppendNode(new object[] { tile.Document.Caption, false, false, false, false, tile.Document.ControlName }, RootQueriesNode);
            //foreach (DevExpress.XtraBars.Docking2010.Views.WindowsUI.Tile tile in MainFrm.tileContainerRules.Items)
            //    Tree.AppendNode(new object[] { tile.Document.Caption, false, false, false, false, tile.Document.ControlName }, RootRulesNode);
            //foreach (DevExpress.XtraBars.Docking2010.Views.WindowsUI.Tile tile in MainFrm.tileContainerReports.Items)
            //    Tree.AppendNode(new object[] { tile.Document.Caption, false, false, false, false, tile.Document.ControlName }, RootReportsNode);
            //foreach (DevExpress.XtraBars.Docking2010.Views.WindowsUI.Tile tile in MainFrm.tileContainerDashboard.Items)
            //    Tree.AppendNode(new object[] { tile.Document.Caption, false, false, false, false, tile.Document.ControlName }, RootDashBoardNode);

            Tree.EndUnboundLoad();
        }
开发者ID:EgyFalseX-Nestle,项目名称:NICSQLTools,代码行数:33,代码来源:RuleDetailsUC.cs


注:本文中的DevExpress.AppendNode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。