• 大小: 0.02M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: Xml  ee  tree  

资源简介

treeview和XML

资源截图

代码片段和文件信息

/// 
/// 唯一升级和更新网站:http://www.cckan.net
/// 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.xml.Linq;
using System.Windows.Forms;

namespace TreeLoadxml
{
    class Class1
    {
        //private void SaveToxml()
        //{
        //    XDeclaration dec = new XDeclaration(“1.0“ “utf-8“ “yes“);
        //    XDocument xml = new XDocument(dec);

        //    XElement root = new XElement(“Tree“);

        //    foreach (TreeNode node in treeView1.Nodes)
        //    {
        //        XElement e = CreateElements(node);
        //        root.Add(e);
        //    }
        //    xml.Add(root);
        //    xml.Save(“Treexml.xml“);
        //}

        //private XElement CreateElements(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        144  2013-01-30 16:41  TreeLoadxml\app.config

     文件      11600  2013-01-31 14:42  TreeLoadxml\bin\Debug\TreeLoadxml.vshost.exe

     文件        144  2013-01-30 16:41  TreeLoadxml\bin\Debug\TreeLoadxml.vshost.exe.config

     文件        490  2010-03-17 22:39  TreeLoadxml\bin\Debug\TreeLoadxml.vshost.exe.manifest

     文件       1292  2013-01-31 14:43  TreeLoadxml\bin\Debug\Treexml.xml

     文件       1379  2013-01-31 14:52  TreeLoadxml\Class1.cs

     文件       5859  2013-01-31 14:52  TreeLoadxml\Form1.cs

     文件       6160  2013-01-30 18:31  TreeLoadxml\Form1.Designer.cs

     文件       6223  2013-01-30 18:31  TreeLoadxml\Form1.resx

     文件       2164  2013-01-30 11:57  TreeLoadxml\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6119  2013-01-31 14:52  TreeLoadxml\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2013-01-30 16:42  TreeLoadxml\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        577  2013-01-31 14:52  TreeLoadxml\Program.cs

     文件       1468  2013-01-31 14:52  TreeLoadxml\Properties\AssemblyInfo.cs

     文件       2860  2013-01-30 16:41  TreeLoadxml\Properties\Resources.Designer.cs

     文件       5612  2013-01-30 11:57  TreeLoadxml\Properties\Resources.resx

     文件       1109  2013-01-30 16:41  TreeLoadxml\Properties\Settings.Designer.cs

     文件        249  2013-01-30 11:57  TreeLoadxml\Properties\Settings.settings

     文件       3790  2013-01-31 14:44  TreeLoadxml\TreeLoadxml.csproj

     文件        734  2013-01-30 15:53  TreeLoadxml\Treexml.xml

     文件        875  2013-01-30 11:57  TreeLoadxml.sln

     目录          0  2013-01-30 16:42  TreeLoadxml\obj\x86\Debug\TempPE

     目录          0  2013-01-31 14:52  TreeLoadxml\obj\x86\Debug

     目录          0  2013-01-31 14:52  TreeLoadxml\bin\Debug

     目录          0  2013-01-30 17:31  TreeLoadxml\bin\Release

     目录          0  2013-01-30 11:57  TreeLoadxml\obj\x86

     目录          0  2013-01-30 17:31  TreeLoadxml\bin

     目录          0  2013-01-30 11:57  TreeLoadxml\obj

     目录          0  2013-01-30 11:57  TreeLoadxml\Properties

     目录          0  2013-01-31 14:43  TreeLoadxml

............此处省略3个文件信息

评论

共有 条评论