摘要: 效果如图自动绘制不停歇代码如下 var canvas = document.getElementById('myCanvas'),width = canvas.width,height = canvas.height; var step,startAngle,endAngle,... 阅读全文
posted @ 2015-07-19 17:45 gclearn 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 利用jsonp进行跨域请求资源C# MVC ApiControllers准备如下:1、需要在引用处右键管理NuGet安装jsonp插件2、在Application_Start()中配置GlobalConfiguration.Configuration.Formatters.Insert(0, new... 阅读全文
posted @ 2015-07-13 12:51 gclearn 阅读(1909) 评论(0) 推荐(0) 编辑
摘要: 如果有用U8的可以明白这个功能就是模仿他的统计功能。我不过是把他造成通用的与适应于DEV的。(效率为6000条数据分组统计时间为3秒左右分组列过多5秒。1000条以下0.几秒,500条下0.00几秒)前置准备 需求DevExpress.XtraGrid.Views.Grid.GridView 一个g... 阅读全文
posted @ 2015-05-19 09:17 gclearn 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: Clipboard.Clear(); Dictionary dtary = new Dictionary(); string Ls = ""; foreach (int i in gridView1.GetSelectedRows(... 阅读全文
posted @ 2015-05-19 08:59 gclearn 阅读(331) 评论(0) 推荐(0) 编辑
摘要: private void gridControl1_MouseUp(object sender, MouseEventArgs e) { Dictionary dtary = new Dictionary(); foreach (int i... 阅读全文
posted @ 2015-04-23 17:23 gclearn 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 网上有人说用查找用字典比较好。我就拿了字典与传统的循环比较。因为字典虽然比较快 但是数组需要写入字典在进行查找 我就在想这个比较慢吧 public static void Main(string[] args) { System.Diagnostics.Stopw... 阅读全文
posted @ 2015-04-21 10:03 gclearn 阅读(311) 评论(0) 推荐(0) 编辑
摘要: private static object GetDefaultValue(object obj, Type type) { if (obj == DBNull.Value) { return default... 阅读全文
posted @ 2015-03-20 10:34 gclearn 阅读(382) 评论(0) 推荐(0) 编辑
摘要: public static T ConvertToModel(DataRow dr) where T : new() { T t = new T(); Type modelType = t.GetType(); for... 阅读全文
posted @ 2015-03-20 10:33 gclearn 阅读(225) 评论(0) 推荐(0) 编辑
摘要: var v1 = bindingSourceBase.DataSource as DataTable; foreach (DataRowView v in v1.DefaultView) { v["isUnChecked"]... 阅读全文
posted @ 2015-03-20 10:32 gclearn 阅读(555) 评论(0) 推荐(0) 编辑