摘要: public class DirectoryAllFiles { static List FileList = new List(); public static List GetAllFiles(DirectoryInfo dir) { FileInfo[] allFile = dir.GetFiles(); foreach (FileI... 阅读全文
posted @ 2017-03-31 16:36 苏州城外的微笑 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 调用 递归生成树 阅读全文
posted @ 2017-03-31 14:31 苏州城外的微笑 阅读(4736) 评论(0) 推荐(0) 编辑
摘要: 需要下载Windows API Code Pack dll库 建立C# wpf项目,引用WindowsAPICodePack.Shell 界面放置一个img容器 <Image x:Name="image"></Image> 代码 string str = @文件路径; ShellFile shell 阅读全文
posted @ 2017-03-28 10:21 苏州城外的微笑 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: 需要下载Windows API Code Pack dll库 建立C# wpf项目,引用WindowsAPICodePack.Shell 界面放置一个img容器 <Image x:Name="image"></Image> 代码 string str = @文件路径; ShellFile shell 阅读全文
posted @ 2017-03-28 10:20 苏州城外的微笑 阅读(1511) 评论(0) 推荐(0) 编辑
摘要: List llb;//符合条件像的listbox数据集合 public static List datalist = new List();//总的数据源 int pageIndex = 1;//当前页 int pageSize = 16;//一页最大容量 int totalPage = 0;//总页数 public ... 阅读全文
posted @ 2017-02-28 11:57 苏州城外的微笑 阅读(803) 评论(0) 推荐(0) 编辑
摘要: 界面 <WindowsFormsHost Grid.Row="1" Grid.RowSpan="2" Opacity="1" FontSize="14"> <wf:TreeView x:Name="tree" AfterSelect="tree_AfterSelect"></wf:TreeView> 阅读全文
posted @ 2017-02-10 14:23 苏州城外的微笑 阅读(4341) 评论(0) 推荐(0) 编辑
摘要: 通过委托实现点击选项卡后禁用选项卡功能,关闭功能后启用选项卡功能 在A项目中定义一个RightMenuFunctions类 在TheCommand,execute中 定义InFunCtions方法 定义禁用选项卡方法 在A项目MainWindow中添加Closing事件 阅读全文
posted @ 2017-01-11 18:13 苏州城外的微笑 阅读(644) 评论(0) 推荐(0) 编辑
摘要: C# 操作excel C# 操作excel //导出Excel private void ExportExcel(string fileName, System.Data.DataTable myDGV, string title) { string saveFileName = ""; Syste 阅读全文
posted @ 2016-12-22 12:32 苏州城外的微笑 阅读(10454) 评论(0) 推荐(1) 编辑
摘要: <Window x:Class="WpfTutorialSamples.TreeView_control.TreeViewDataBindingSample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmln 阅读全文
posted @ 2016-10-11 15:42 苏州城外的微笑 阅读(346) 评论(0) 推荐(0) 编辑
摘要: <Window x:Class="WpfTutorialSamples.ListView_control.ListViewGridViewSample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x 阅读全文
posted @ 2016-10-11 15:41 苏州城外的微笑 阅读(503) 评论(0) 推荐(0) 编辑