上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 具体内容见:https://www.cnblogs.com/changbaishan/p/4387351.html 阅读全文
posted @ 2018-03-12 11:17 liu_xh 阅读(1111) 评论(0) 推荐(0)
摘要: 1 DispatcherTimer = new DispatcherTimer(); 2 Timer.Tick += Timer_Tick; 3 Timer.Interval = TimeSpan.FromSeconds(1); 4 Timer.Start(); 5 6 7 private void Timer_Tick(object sender, EventArgs e) ... 阅读全文
posted @ 2018-03-09 14:46 liu_xh 阅读(2470) 评论(0) 推荐(0)
摘要: 1 //获取今天是星期几 2 string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; 3 string week = Day[Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d"))].ToSt... 阅读全文
posted @ 2018-03-09 14:22 liu_xh 阅读(5805) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 6 7 8 9 10 11 阅读全文
posted @ 2018-03-09 10:08 liu_xh 阅读(408) 评论(0) 推荐(0)
摘要: 1 public static bool IsValidIp(string strIn) 2 { 3 bool b = Regex.IsMatch(strIn, @"^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$"); 4 5 return b; 6 } 阅读全文
posted @ 2018-03-08 16:13 liu_xh 阅读(4228) 评论(2) 推荐(0)
摘要: 从一个目录选择一个文件,复制到另一个目录 阅读全文
posted @ 2018-03-08 10:59 liu_xh 阅读(1586) 评论(0) 推荐(0)
摘要: 感谢Sunny秋刀鱼。https://www.cnblogs.com/527289276qq/p/5595798.html 在页面或者窗口Unloaded事件中关闭串口即可。 阅读全文
posted @ 2018-03-06 11:49 liu_xh 阅读(5872) 评论(0) 推荐(0)
摘要: 转自:http://blog.csdn.net/xuejiren/article/details/39449515 阅读全文
posted @ 2018-03-03 09:12 liu_xh 阅读(474) 评论(0) 推荐(0)
摘要: 事件和事件处理器之间通过事件订阅来关联。 例如:this.button1.click += new RouteEventHandler(Button1_click); Button1_click()就是方法,也即事件处理器。 阅读全文
posted @ 2018-02-25 22:15 liu_xh 阅读(530) 评论(0) 推荐(0)
摘要: <Path Data="M 0,0 L 200,100 L 100,200 Z" Stroke="Black" Fill="Red"/> Path画图形:M 0,0把笔移到点(0,0)处。用直线延伸至坐标(200,100)的地方。再用一条直线延伸至坐标(100,200)的地方。 阅读全文
posted @ 2018-02-25 20:24 liu_xh 阅读(214) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页