资源简介
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\xm
文件 962 2013-11-26 15:18 ReadAndSaveTreeViewState\Backup\WindowsFormsApplication1.sln
文件 4368 2019-12-08 12:46 ReadAndSaveTreeViewState\UpgradeLog.xm
文件 144 2019-12-08 12:46 ReadAndSaveTreeViewState\WindowsFormsApplication1\app.config
文件 2530 2019-12-11 00:19 ReadAndSaveTreeViewState\WindowsFormsApplication1\bin\Debug\TreeView.xm
文件 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个文件信息
相关资源
- Treeview控件用法基础
- C#遍历指定文件夹(并把数据加载到
- wpf-treeview 自定义漂亮的wpf树控件
- treeview c#编写的目录树(treeview)文件
- WPF下使用TreeView实现流程图效果
- WPF TreeView ListView 数据联动
- C# 简单的项目布局
- WPF做的左侧展开的标签控件类似TREE
- 自定义TreeView,在树节点旁添加按钮。
- 树形展开的C#树形菜单控件Treeview
- C# WinForm 控件TreeView 最简单的连接数据
- C# winform treeView控件的使用绑定数据库
- C#TreeView数据库绑定+拖动
- TreeView ListView 应用
- 自定义高级TreeView控件TreeViewAdv
- WPF TreeView带CheckBox
- TreeView拖动节点上下移动
- 从数据库读取数据到treeview
- 读取xm<x>l文件到TreeView
- C#-TreeView控件使用方法
-
treeview和xm
l - 利用TreeView制作目标导航栏
- Winform treeview控件设计及应用源码
- combobox里面加载treeview (Treeviewcombob
- TreeViewEx 控件扩展
- wpf 树形控件(TreeViewDemo)
-
xm
l文件读取到TreeView显示 - C# 树形控件(treeview)开发
- TreeView目录文件浏览简单代码
- 从DataGridView控件中拖放数据到TreeVie
评论
共有 条评论