• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: TreeView  

资源简介

TreeView数据保存以及添加

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsForms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void buttonload_Click(object sender EventArgs e)
        {
            treeView1.Focus();
            string xmlFileName = “TreeView.xml“;
            if (System.IO.File.Exists(xmlFileName))
            {
                WindowsForms.xmlTreeViewState TreeState = new WindowsForms.xmlTreeViewState();
                TreeState.LoadTreeViewState(treeView1 xmlFileName);
            }
        }

        private void button

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

     文件       1214  2013-11-26 15:52  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Form1.cs

     文件      30858  2013-11-26 15:52  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Form1.Designer.cs

     文件       5814  2013-11-26 15:52  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Form1.resx

     文件        493  2013-11-26 15:41  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Program.cs

     文件       1380  2013-11-26 15:18  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Properties\AssemblyInfo.cs

     文件       2886  2013-11-26 15:40  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Properties\Resources.Designer.cs

     文件       5612  2013-11-26 15:18  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Properties\Resources.resx

     文件       1097  2013-11-26 15:40  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Properties\Settings.Designer.cs

     文件        249  2013-11-26 15:18  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\Properties\Settings.settings

     文件       3841  2013-11-26 15:28  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\WindowsFormsApplication1.csproj

     文件      10463  2013-11-26 16:06  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1\xmlTreeViewClass.cs

     文件        962  2013-11-26 15:18  ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1.sln

     文件       4368  2019-12-08 12:46  ReadAndSaveTreeViewState\UpgradeLog.xml

     文件        144  2019-12-08 12:46  ReadAndSaveTreeViewState\WindowsFormsApplication1\app.config

     文件       2530  2019-12-11 00:19  ReadAndSaveTreeViewState\WindowsFormsApplication1\bin\Debug\TreeView.xml

     文件      14336  2019-12-11 00:04  ReadAndSaveTreeViewState\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe

     文件        144  2019-12-08 12:46  ReadAndSaveTreeViewState\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe.config

     文件      42496  2019-12-11 00:04  ReadAndSaveTreeViewState\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb

     文件      11592  2019-12-11 00:23  ReadAndSaveTreeViewState\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe

     文件        144  2019-12-08 12:46  ReadAndSaveTreeViewState\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.config

     文件        490  2019-03-19 12:46  ReadAndSaveTreeViewState\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest

     文件       1618  2019-12-11 00:04  ReadAndSaveTreeViewState\WindowsFormsApplication1\Form1.cs

     文件       9028  2019-12-11 00:03  ReadAndSaveTreeViewState\WindowsFormsApplication1\Form1.Designer.cs

     文件       5814  2019-12-11 00:03  ReadAndSaveTreeViewState\WindowsFormsApplication1\Form1.resx

     文件       1308  2019-12-10 23:57  ReadAndSaveTreeViewState\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6163  2019-12-11 00:23  ReadAndSaveTreeViewState\WindowsFormsApplication1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2019-12-08 12:47  ReadAndSaveTreeViewState\WindowsFormsApplication1\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        180  2019-12-11 00:03  ReadAndSaveTreeViewState\WindowsFormsApplication1\obj\Debug\WindowsForms.Form1.resources

     文件       1462  2019-12-11 00:23  ReadAndSaveTreeViewState\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

     文件        975  2019-12-11 00:03  ReadAndSaveTreeViewState\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache

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

评论

共有 条评论