随笔 - 134  文章 - 0 评论 - 73 阅读 - 17万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

01 2015 档案
项目常用解决方案之SystemSetting.xml文件的修改与读取
摘要:Winform及WPF项目中经常会用到类似SystemSetting.xml等类似的文件用于保存CLIENT的数据,比如登录过的用户名或密码以及其他设置。所以就想到一个解决方法,可以用到所有有此需求的项目中去,避免重复写代码。 1.创建一个Attribute类,用于指定属性在XML文件中的Path 阅读全文
posted @ 2015-01-19 11:47 JustYong 阅读(1819) 评论(0) 推荐(0) 编辑
winspool.drv
摘要:public partial class Form1 : Form{ [System.Runtime.InteropServices.DllImportAttribute("winspool.drv", SetLastError = true)] public exter... 阅读全文
posted @ 2015-01-07 16:57 JustYong 阅读(2110) 评论(0) 推荐(0) 编辑
在浏览器中从FTP下载文件
摘要:1 public static class FTPHelper 2 { 3 /// 4 /// 得到特定FTP目录的文件列表 5 /// 6 /// ftp://{username}:{password}@ftp.... 阅读全文
posted @ 2015-01-07 11:53 JustYong 阅读(4389) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示