摘要: /// <summary> /// 解析字节数组成图片 /// </summary> /// <param name="byteArray"></param> /// <returns></returns> public static BitmapImage ByteArrayToBitmapImage(byte[] byteArray) { BitmapImage bmp = null; try { bmp = ... 阅读全文
posted @ 2012-07-06 16:47 ﹎蓝言觅ぷ雨 阅读(8612) 评论(0) 推荐(3) 编辑
摘要: /// <summary> /// 经纬度之间的距离 /// </summary> /// <param name="from"></param> /// <param name="to"></param> /// <returns></returns> public static double CalcDistance(System.Windows.Point from, System.Windows.Point to) { double rad = 637 阅读全文
posted @ 2012-07-06 16:41 ﹎蓝言觅ぷ雨 阅读(2664) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Common{ public static class ExtensionFuncation { #region 判断是否为空 /// <summary> /// 判断对象是否为null或者为空 /// </summary> /// <param name="o"></param> /// <returns></ret... 阅读全文
posted @ 2012-07-06 16:38 ﹎蓝言觅ぷ雨 阅读(756) 评论(6) 推荐(0) 编辑