2017年11月22日
摘要: 这里以c#为例将风的uv分量转成风向风速(别的语言类似) 阅读全文
posted @ 2017-11-22 15:11 yan_jinLiang 阅读(7410) 评论(1) 推荐(1) 编辑
  2016年10月19日
摘要: C#关于winforms窗体大小、边框、移动、动画等属性 阅读全文
posted @ 2016-10-19 13:08 yan_jinLiang 阅读(6017) 评论(1) 推荐(1) 编辑
  2016年10月18日
摘要: C# cmd执行命令 阅读全文
posted @ 2016-10-18 09:21 yan_jinLiang 阅读(2484) 评论(1) 推荐(1) 编辑
摘要: 利用占位符替换word中的字符串和添加图片 ///<summary> 利用占位符替换word中的字符串和添加图片 ///<summary> /// 替换word模板文件内容,包括表格中内容 /// 调用如下:WordStringsReplace("D:/CNSI/CNSI_1.doc", new A 阅读全文
posted @ 2016-10-18 09:20 yan_jinLiang 阅读(3009) 评论(0) 推荐(0) 编辑
摘要: 图片的裁剪,两个图片合成一个图片(这是从网上摘的) /// <summary> /// 图片裁剪,生成新图,保存在同一目录下,名字加_new,格式1.png 新图1_new.png /// </summary> /// <param name="picPath">要修改图片完整路径</param> 阅读全文
posted @ 2016-10-18 09:17 yan_jinLiang 阅读(9890) 评论(0) 推荐(1) 编辑
  2016年9月28日
摘要: //限制输入不能为中文和全角 private void zhbh_KeyPress(object sender, KeyPressEventArgs e) { int chfrom = Convert .ToInt32("4e00", 16); //范围(0x4e00~0x9fa5)转换成int(c 阅读全文
posted @ 2016-09-28 15:13 yan_jinLiang 阅读(6306) 评论(0) 推荐(0) 编辑
摘要: /// 将容器内容转成图片导出,这里的controller就是this /// </summary> private void OutTheControllerToPic() { Bitmap bitmap = new Bitmap( this.Width, this .Height); DrawT 阅读全文
posted @ 2016-09-28 15:11 yan_jinLiang 阅读(2818) 评论(0) 推荐(0) 编辑
摘要: 1、调用地图并将micaps文件加载地图上 IFileBindingService fbs = ServiceLocator.Current.GetInstance< IFileBindingService>(); ILayer layer = fbs.CreateLayerForFile(new 阅读全文
posted @ 2016-09-28 15:06 yan_jinLiang 阅读(500) 评论(0) 推荐(0) 编辑
  2016年7月6日
摘要: this.dataGridView1.DataSource = this.dISASTERBindingSource; this.dataGridView1.Location = new System.Drawing.Point(0, 0); this.dataGridView1.Name = "d 阅读全文
posted @ 2016-07-06 14:40 yan_jinLiang 阅读(3402) 评论(0) 推荐(0) 编辑
  2016年6月14日
摘要: http://blog.csdn.net/gangan1345/article/details/7926848 阅读全文
posted @ 2016-06-14 16:56 yan_jinLiang 阅读(254) 评论(0) 推荐(0) 编辑