上一页 1 ··· 9 10 11 12 13
摘要: 新项目中牵涉到对打印机的一些操作,最重要的莫过于获取打印机的状态,IP等信息,代码量不大,但是也是自己花了一点时间总结出来的,希望能帮助需要的朋友。 PrinterCommunicate用于连接打印机并发送指令 WindowsPrintQueue用于获取打印机的型号,以及得到打印机的WindowsP 阅读全文
posted @ 2014-07-22 18:11 JustYong 阅读(4674) 评论(7) 推荐(1) 编辑
摘要: //对应数据库中的某个表 [Table(Name = "main.Student")] public class Student { [Column(Name = "StuName", DbType = "varchar(50)")] public string StuName { get; set... 阅读全文
posted @ 2014-06-04 12:13 JustYong 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 一,场景 通过单击按钮执行ViewModel中的Command来关闭窗体,项目引用Prism4架构及使用MVVM进行UI层的开发。二, 实现代码(方式应该有很多种,现介绍两种我所想过的方式) (1).通过发布订阅事件来关闭窗体 1.CodeBahind中的代码 1 public partial class ApproveLoginView : Window 2 3 { 4 5 [ImportingConstructor] 6 7 public ApproveLoginView() 8 9 ... 阅读全文
posted @ 2013-05-30 16:03 JustYong 阅读(1798) 评论(0) 推荐(1) 编辑
上一页 1 ··· 9 10 11 12 13