摘要: 1、二进制、八进制、十进制、十六进制的字符串转换成4个字节的整型int32(也可转换成其它类型int16,short等等) 1 Int32 nn; 2 //二进制转换 3 nn = Convert.ToInt32("1010", 2); 4 //八进制转换 5 nn = Convert.ToInt3 阅读全文
posted @ 2018-05-11 15:32 逛园子$$$ 阅读(650) 评论(0) 推荐(0)
摘要: SQLite分页查询的SQL语句: 1 /// <summary> 2 /// 分页获取数据列表 3 /// </summary> 4 public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int 阅读全文
posted @ 2018-05-11 15:07 逛园子$$$ 阅读(260) 评论(0) 推荐(0)
摘要: 通过Mvvm Light源码我们可以知道Messenger的实现细节,如果你现在还不能理解这些代码也没关系,很多东西理解起来远比使用起来难,Messenger也是如此,它使用起来很简单,由于Messenger只公开了一些消息注册和发送方法,使用者一看便知方法的功能,而只需关注要发送的数据和接收的对象 阅读全文
posted @ 2018-05-11 15:00 逛园子$$$ 阅读(225) 评论(0) 推荐(0)
摘要: 1.写文件 2.读文件 阅读全文
posted @ 2018-04-12 17:11 逛园子$$$ 阅读(194) 评论(0) 推荐(0)
摘要: 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 List users = new List(); 6 users.Add(new User("张三", "啊啊啊")); 7 u... 阅读全文
posted @ 2018-04-09 11:01 逛园子$$$ 阅读(979) 评论(0) 推荐(0)
摘要: 1、添加两个引用:WindowsFormsIntegration.dll(负责整合WPF和Windows)、System.Windows.Forms.dll2、在 XAML文件中添加引用(粗体部分): <Window x:Class="VideoPreview.MainWindow" xmlns=" 阅读全文
posted @ 2018-04-08 17:05 逛园子$$$ 阅读(199) 评论(0) 推荐(0)
摘要: //服务端 //前端 <Window x:Class="WpfApp_TCPIPServer.TServerWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema 阅读全文
posted @ 2018-03-13 13:55 逛园子$$$ 阅读(561) 评论(0) 推荐(0)