上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: 本文源参考 http://www.cnblogs.com/ListenFly/archive/2013/02/24/2923474.html 谢谢源作者 WPF中的Page相比Window来说更加的精简,因为他没有提供一个Show或者是Hide的方法,而是通过链接的方式进行页面切换。此外, 一般来说 阅读全文
posted @ 2016-06-27 09:08 文洁丫头 阅读(20811) 评论(0) 推荐(0) 编辑
摘要: 浅谈WPF页间导航 使用导航的目的是从一个页面进入到另一个页面。无论是预先决定的线性顺序(向导)还是基于层次的用户驱动程序(大部分网站的形式),或者动态生成的路径,主要有3种方法实现:调用Navigate方法,使用Hyperlinks,使用导航日志。 Navigate方法: 导航容器支持Naviga 阅读全文
posted @ 2016-05-13 14:36 文洁丫头 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-05-10 17:07 文洁丫头 阅读(180) 评论(0) 推荐(0) 编辑
摘要: public bool IsNum(string Str) { string Rx = @"^[1-9]\d*$"; if (Regex.IsMatch(Str, Rx)) { return true; } ... 阅读全文
posted @ 2016-05-08 10:35 文洁丫头 阅读(201) 评论(0) 推荐(0) 编辑
摘要: public bool IsHttpUrl(string Value) { if ((Value.Substring(0, 7) == "http://") || (Value.Substring(0, 8) == "https://")) return true; return fa... 阅读全文
posted @ 2016-05-08 10:34 文洁丫头 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: public bool IsMobilePhone(string input) { Regex regex = new Regex("^13\\d{9}$"); return regex.IsMatch(input); } 阅读全文
posted @ 2016-05-08 10:33 文洁丫头 阅读(788) 评论(0) 推荐(0) 编辑
摘要: public bool IsPhone(string input) { string pattern = "^\\(0\\d{2}\\)[- ]?\\d{8}$|^0\\d{2}[- ]?\\d{8}$|^\\(0\\d{3}\\)[- ]?\\d{7}$|^0\\d{3}[- ]?\\d{7}$"; Regex ... 阅读全文
posted @ 2016-05-08 10:32 文洁丫头 阅读(226) 评论(0) 推荐(0) 编辑
摘要: public bool IsAllChineseCh(string input) { Regex regex = new Regex("^[\u4e00-\u9fa5]+$"); return regex.IsMatch(input); } 阅读全文
posted @ 2016-05-08 10:31 文洁丫头 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 生成类似 LS14120002 private String GenNewOrder() { String newOrder; var orders = LYOrder.Items; String lastOrder = ((Order)orders[orders.Count - 1]).Ord... 阅读全文
posted @ 2016-05-08 10:12 文洁丫头 阅读(990) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/peida/archive/2008/08/11/1263384.html Count/Sum/Min/Max/Avg用于统计数据,比如统计一些数据的个数,求和,最小值,最大值,平均数。 1.Count:返回集合中的元素个数,返回INT类型;不延迟 阅读全文
posted @ 2016-04-18 18:58 文洁丫头 阅读(318) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 下一页