private string NodeToString(DevExpress.XtraTreeList.Nodes.TreeListNode node)
        {
            string res    = string.Empty;
            string indent = "    ";

            for (int i = 0; i < node.Level; i++)
            {
                res += indent;
            }
            if (node.HasChildren)
            {
                res += "+";
            }
            else
            {
                res += indent;
            }
            res += "|";
            foreach (TreeListColumn col in node.TreeList.VisibleColumns)
            {
                res += String.Format("{0};", node.GetDisplayText(col));
            }
            res += "|" + Environment.NewLine;
            return(res);
        }
Exemplo n.º 2
0
        private string GetStringByNode(DevExpress.XtraTreeList.Nodes.TreeListNode node)
        {
            string ret = string.Empty;

            for (int i = 0; i < treeList1.Columns.Count; i++)
            {
                ret += node.GetDisplayText(i) + (i < treeList1.Columns.Count - 1 ? "; ": ".");
            }
            return(ret);
        }