摘要: 在App.xaml中添加以下代码: 阅读全文
posted @ 2015-09-19 16:47 西楼月光 阅读(167) 评论(0) 推荐(0)
摘要: List infowindows = treeviewhelper.GetChildObjects(gridMap, ""); public class TreeViewHelper { public T GetParentObject(DependencyObject obj,... 阅读全文
posted @ 2015-09-15 11:35 西楼月光 阅读(373) 评论(0) 推荐(0)
摘要: private Color ToColor(string colorName) { if (colorName.StartsWith("#")) colorName = colorName.Replace("#", string.E... 阅读全文
posted @ 2015-09-12 11:32 西楼月光 阅读(2800) 评论(0) 推荐(0)
摘要: https://msdn.microsoft.com/zh-cn/library/windows/apps/windows.ui.xaml.datatemplate.loadcontent.aspx ... 阅读全文
posted @ 2015-08-27 15:59 西楼月光 阅读(241) 评论(0) 推荐(0)
摘要: Server.MapPath 方法Server.MapPath 方法将虚拟路径 (/default.cshtml) 转换为服务器能够理解的物理路径 (C:\Johnny\MyWebSited\Demo\default.cshtml)。当需要打开位于服务器上的数据文件时,您就会用到该方法(数据文件只能... 阅读全文
posted @ 2015-08-06 10:08 西楼月光 阅读(161) 评论(0) 推荐(0)
摘要: 我们绕点远路来回答这个问题。编程分为两类:系统编程(system programming)和应用编程(application programming)。所谓系统编程,简单来说,就是编写库;而应用编程就是利用写好的各种库来编写具某种功用的程序,也就是应用。系统程序员会给自己写的库留下一些接口,即API... 阅读全文
posted @ 2015-07-30 14:51 西楼月光 阅读(168) 评论(0) 推荐(0)
摘要: newDP.DisasterType = types.Where(t => t.Type == newDP.DisasterType).First().Code; 阅读全文
posted @ 2015-07-13 09:14 西楼月光 阅读(323) 评论(0) 推荐(0)
摘要: 1、读入模板excelFileStream file = new FileStream(@"E:/数字县区/东源县/东源地灾地矿信息管理系统/其他文件/地灾导出excel模板test.xls", FileMode.Open, FileAccess.Read);hssfworkbook = new H... 阅读全文
posted @ 2015-07-03 10:34 西楼月光 阅读(505) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/hyynet09/article/details/4219488C 货币2.5.ToString("C")¥2.50D 十进制数25.ToString("D5")00025E 科学型25000.ToString("E")2.500000E+005F 固定点2... 阅读全文
posted @ 2015-05-28 17:09 西楼月光 阅读(232) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/doubleliang/archive/2011/07/06/2098775.html 阅读全文
posted @ 2015-05-21 16:40 西楼月光 阅读(227) 评论(0) 推荐(0)