08 2014 档案

摘要:Cédric Bignon :Let's note Points the points of the polygon (where Points[0] == Points[Points.Count - 1] to close the polygon).The idea behind the next... 阅读全文
posted @ 2014-08-25 10:12 Ji Nerd 阅读(3120) 评论(0) 推荐(0)
摘要:可以用Control.MousePosition获得当前鼠标的坐标,使用PointToClient计算鼠标相对于某个控件的坐标,如下1 Point screenPoint = Control.MousePosition;//鼠标相对于屏幕左上角的坐标2 Point formPoint = this.... 阅读全文
posted @ 2014-08-25 08:54 Ji Nerd 阅读(346) 评论(0) 推荐(0)
摘要:1 //经纬度转墨卡托 2 public MapPoint lonLat2Mercator(MapPoint lonLat) 3 { 4 MapPoint mercator = new MapPoint(); 5 do... 阅读全文
posted @ 2014-08-23 15:37 Ji Nerd 阅读(848) 评论(1) 推荐(0)
摘要:原理:地球赤道上环绕地球一周走一圈共40075.04公里,而@一圈分成360°,而每1°(度)有60,每一度一秒在赤道上的长度计算如下: 40075.04km/360°=111.31955km 111.31955km/60=1.8553258km=1855.3m 而每一分又有60秒,每一秒就代... 阅读全文
posted @ 2014-08-23 10:04 Ji Nerd 阅读(1075) 评论(0) 推荐(0)
摘要:例: Double a = 2.1234567; Math.Round(a,2); 阅读全文
posted @ 2014-08-21 10:25 Ji Nerd 阅读(771) 评论(0) 推荐(0)
摘要:GMap.NETis great and Powerful, Free, cross platform, open source .NET control. Enable userouting,geocoding,directionsandmapsfrom Coogle, Yahoo!, Bing,... 阅读全文
posted @ 2014-08-21 09:24 Ji Nerd 阅读(2166) 评论(0) 推荐(0)
摘要:lock(this){//执行操作DoSomething()....//比如操作静态变量,缓存等} //防止并发操作,当前用户操作完,下个用户才能再进行操作 //一般lock和一个静态型object变量进行配合 //先声明一个privatestaticobjectsymObj=newobject()... 阅读全文
posted @ 2014-08-19 11:19 Ji Nerd 阅读(331) 评论(0) 推荐(0)