上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 65 下一页
摘要: 1 /// <summary> 2 /// 点是否在圆内(在边上也认为在圆内) 3 /// </summary> 4 /// <param name="cPoint">圆心坐标</param> 5 /// <param name="cRadius">圆半径</param> 6 /// <param name="point">当前点</param> 7 /// <returns></returns> 8 public 阅读全文
posted @ 2013-03-05 10:06 94cool 阅读(631) 评论(0) 推荐(0)
摘要: win8 IE10打不开(管理员权限可打开)的解决办法好多人都有这样的问题 重置和关闭加载项不顶用的情况下,试试这个WIN+R,regedit,找到HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main对左侧树Main节点右键——权限。正常情况下应该会有SYSTEM、RESTRICTED、Administrators等用户组,少的话就不正常。再在当前页面点击高级,点击右下角的“启用继承”按钮即可。 阅读全文
posted @ 2013-02-27 09:04 94cool 阅读(289) 评论(0) 推荐(0)
摘要: 1 class 设置服务恢复选项 2 { 3 public static void Main(string[] args) 4 { 6 ServiceRecovery.UpdateServiceConfig("DEMO"); 7 Console.WriteLine("ok"); 8 } 9 } 10 11 class ServiceRecovery 12 { 13 #region NativeMethod 14 1... 阅读全文
posted @ 2013-02-25 10:46 94cool 阅读(1743) 评论(0) 推荐(0)
摘要: string val="130201121212";DateTime ss = DateTime.ParseExact(val, "yyMMddHHmmss", new CultureInfo("zh-CN")); 阅读全文
posted @ 2013-02-18 15:10 94cool 阅读(157) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script language="ja 阅读全文
posted @ 2013-02-06 17:23 94cool 阅读(209) 评论(0) 推荐(0)
摘要: 首先,自定义一个类ListViewNF,继承自 System.Windows.Forms.ListView。代码:using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;namespace ListViewDoubleTest{ class ListViewNF : System.Windows.Forms.ListView { public ListViewNF() { // 开启双缓冲 ... 阅读全文
posted @ 2013-02-06 09:33 94cool 阅读(3635) 评论(0) 推荐(1)
摘要: stringserverAction="设置";ServerAction sAction = (ServerAction)Enum.Parse(typeof(ServerAction), serverAction); if (Enum.IsDefined(typeof(ServerAction), sAction)) { //ok } 阅读全文
posted @ 2012-12-11 11:08 94cool 阅读(413) 评论(0) 推荐(0)
摘要: 返回单位:米static double Distance(double lon1, double lat1, double lon2, double lat2) { double R = 6378137; //地球半径 lat1 = lat1 * Math.PI / 180.0; lat2 = lat2 * Math.PI / 180.0; double sa2 = Math.Sin((lat1 - lat2) / 2.0); double sb2... 阅读全文
posted @ 2012-12-10 14:29 94cool 阅读(622) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;namespace MethodInfoInvokeDemo{ public class ReflectTest { public void MethodWithNoParaNoReturn() { Console.WriteLine("不带参数且不返回值的方法"); } public strin... 阅读全文
posted @ 2012-12-06 20:10 94cool 阅读(9490) 评论(0) 推荐(2)
摘要: public static Bitmap RotateImage(Image image, float angle) { if (image == null) throw new ArgumentNullException("image"); float dx = image.Width / 2.0f; float dy = image.Height / 2.0f; Bitmap rotatedBmp = new Bitmap(image.Width, image... 阅读全文
posted @ 2012-12-04 21:59 94cool 阅读(2343) 评论(0) 推荐(0)
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 65 下一页