摘要: 1。下载windows版redis 没有官方的从 GITHUB上下载 http://github.com/ServiceStack/redis-windows 解压开REDIS 目录结构 2。安装启动服务 打开CMD,转到解压目录 输入redis-server.exe redis.windows.c 阅读全文
posted @ 2017-03-01 09:57 张小帅 阅读(422) 评论(0) 推荐(0) 编辑
摘要: DateTime.ParseExact() string dateString = "20121126"; DateTime dt = DateTime.ParseExact(dateString, "yyyyMMdd", System.Globalization.CultureInfo.Curre 阅读全文
posted @ 2016-12-13 10:39 张小帅 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll",SetLastError=true)] static extern int GetWindowThreadProcessId(IntPtr hwnd,out int processid); 调用方法: Microsoft.office.Interop. 阅读全文
posted @ 2016-09-14 09:33 张小帅 阅读(5295) 评论(0) 推荐(0) 编辑
摘要: 在webapi中定义全局的过滤器要在app_start下WebApiConfig.cs中 public static class WebApiConfig { public static void Register(HttpConfiguration config) { config.MapHttp 阅读全文
posted @ 2016-07-13 17:36 张小帅 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: 提交按钮 <button click="onclick" command={binding passcommand}commandparameter={binding text,element=lblpw}/> <textblock name=lblpw visible=hidden/> <pass 阅读全文
posted @ 2016-07-04 17:24 张小帅 阅读(283) 评论(0) 推荐(0) 编辑
摘要: moderntab moderntab.links link source=这里只能是usercontrol类型,不能是page。而在modernwindow linkgroup.links.link中可以是page 阅读全文
posted @ 2016-06-27 11:25 张小帅 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 加载页面时,每次切换选项卡都会调用两次LOADED事件 ,如打开页面A时会调用一次,点选选项卡B时在调用完A的所有方法后还会调用页面A的LOADED事件,然后退出A进入B页面,所以可以把页面继承ICONTENT接口,在实现的方法中书写加载页面所需的功能 阅读全文
posted @ 2016-06-17 16:59 张小帅 阅读(305) 评论(0) 推荐(0) 编辑
摘要: <mui:ModernTab SelectedSource="/Content/LoremIpsum.xaml#1" Layout="Tab"> <mui:ModernTab.Links> <mui:Link DisplayName="Lorem Ipsum 1" Source="/Content/ 阅读全文
posted @ 2016-06-14 09:11 张小帅 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 在主窗体中注册消息 主窗体中获取FRAME的方法 在页面中的导航请求 Messenger.Default.Send(pageuri); 按钮导航 阅读全文
posted @ 2016-06-14 09:05 张小帅 阅读(342) 评论(0) 推荐(0) 编辑
摘要: mysql 不支持 分组子查询 over; SELECT SalesOrderID, ProductID, OrderQty ,SUM(OrderQty) OVER(PARTITION BY SalesOrderID) AS 'Total' ,AVG(OrderQty) OVER(PARTITION 阅读全文
posted @ 2016-05-20 11:52 张小帅 阅读(871) 评论(0) 推荐(0) 编辑