05 2013 档案

FTP文件操作
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace file{ /// <summary> /// FTP参数类 /// </summary> public class FtpParams { private static bool m_IsInit = false; private static string m_ServerIP = "127.0.0.1"; private static ... 阅读全文

posted @ 2013-05-31 11:39 之远 阅读(160) 评论(0) 推荐(0)

怎样向DEV控件RadioGroup添加项及listbox项的添加删除
摘要:///RadioGroup添加项public void intit() {esriGeoAnalysisSlopeEnum m_SlopeType1 = esriGeoAnalysisSlopeEnum.esriGeoAnalysisSlopeDegrees; esriGeoAnalysisSlopeEnum m_SlopeType2 = esriGeoAnalysisSlopeEnum.esriGeoAnalysisSlopePercentrise; DevExpress.XtraEditors.Controls.RadioGroup... 阅读全文

posted @ 2013-05-31 11:25 之远 阅读(1061) 评论(0) 推荐(0)

gis地图界面利用栈实现撤销重做操作
摘要:操作类public class operate { private Stack<IElement> nows = new Stack<IElement>(); private IElement nl; private IElement xElement; public operate() { } //撤销 public void rollback(Stack<IElement> history, IMapControl3 axmap, IGraphics... 阅读全文

posted @ 2013-05-16 09:26 之远 阅读(357) 评论(0) 推荐(0)

jpg文件适合picturebox大小显示代码
摘要:private Bitmap JpgToBmp() { Bitmap img1 = new Bitmap(Width, Height); Graphics g1 = Graphics.FromImage(img1); Image img2 = Image.FromFile(@"D:\gisc#\\P11-06-11_08.49.jpg"); g1.DrawImage(img2, new Rectangle(Point.Empty, img2.Size)); return... 阅读全文

posted @ 2013-05-15 17:54 之远 阅读(159) 评论(0) 推荐(0)

txt格式数据转换成dbf格式(C#)
摘要:using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.IO;using ESRI.ArcGIS.Geodatabase;using ESRI.ArcGIS.esriSystem;using System.Windows.Forms;using ESRI.ArcGIS.DataSourcesFile;namespace txttodbf{ public class TxtToDbf { privat... 阅读全文

posted @ 2013-05-15 17:44 之远 阅读(1507) 评论(0) 推荐(0)