项目常用解决方案之SystemSetting.xml文件的修改与读取
摘要:Winform及WPF项目中经常会用到类似SystemSetting.xml等类似的文件用于保存CLIENT的数据,比如登录过的用户名或密码以及其他设置。所以就想到一个解决方法,可以用到所有有此需求的项目中去,避免重复写代码。 1.创建一个Attribute类,用于指定属性在XML文件中的Path
阅读全文
posted @
2015-01-19 11:47
JustYong
阅读(1819)
推荐(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) 编辑
在浏览器中从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) 编辑