public Print(ESRI.ArcGIS.Controls.AxMapControl AxMap) { axMap = AxMap; InitializeComponent(); Common.MapPrintCommon.g_axPageLayoutControl = axPageLayoutControl1; Common.MapPrintCommon.g_axToolbarControl = axToolbarControl1; }
public Form3(Form1 f1, IMap map, ESRI.ArcGIS.Controls.AxMapControl axMapControl1) { InitializeComponent(); this.f1 = f1; this.map = map; this.axMapControl1 = axMapControl1; }
/// <summary> /// 定位观测区 /// </summary> /// <param name="pMapCtr"></param> /// <param name="id"></param> public static void PositionResaultArea(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, int id) { Core.Model.SatelliteResault model = new Core.Model.SatelliteResault(); Core.DAL.SatelliteResault dal = new Core.DAL.SatelliteResault(); try { model = dal.GetModel(id); IPolygon taskarea = Core.Generic.Convertor.ToPolygon(model.POLYGONSTRING); IEnvelope envelope; envelope = taskarea.Envelope; if (!envelope.IsEmpty) { envelope.Expand(2, 2, true); } pMapCtr.Extent = envelope; pMapCtr.ActiveView.Refresh(); } catch (Exception ex) { throw (ex); } finally { model = null; dal = null; } }
public Form4(Form1 f1, IMap map, ESRI.ArcGIS.Controls.AxMapControl axMapControl1) { InitializeComponent(); this.f1 = f1; this.map = map; this.axMapControl1 = axMapControl1; comboBox1.Items.Add("select features from"); comboBox1.Items.Add("add to the currently selected features in"); comboBox1.Items.Add("remove from the currently selected features in"); comboBox1.Items.Add("select from the currently selected features in"); comboBox1.SelectedItem = comboBox1.Items[0]; IEnumLayer allLayers = map.get_Layers(); ILayer layer = allLayers.Next(); while (layer != null) { checkedListBox1.Items.Add(layer.Name.ToString()); layer = allLayers.Next(); } allLayers = map.get_Layers(); layer = allLayers.Next(); while (layer != null) { comboBox2.Items.Add(layer.Name.ToString()); layer = allLayers.Next(); } comboBox2.SelectedItem = comboBox2.Items[0]; comboBox3.SelectedItem = comboBox3.Items[0]; }
public Print(ESRI.ArcGIS.Controls.AxMapControl AxMap) { axMap = AxMap; InitializeComponent(); Common.MapPrintCommon.g_axPageLayoutControl = axPageLayoutControl1; Common.MapPrintCommon.g_axToolbarControl = axToolbarControl1; }
public Form5(Form1 f1, IMap map, string Layer, int layerIndex, ESRI.ArcGIS.Controls.AxMapControl axMapControl1) { InitializeComponent(); this.f1 = f1; this.map = map; this.Layer = Layer; this.layerIndex = layerIndex; this.axMapControl1 = axMapControl1; }
/// <summary> /// 批量加载卫星观测区 根据卫星观测区所属的任务id加载 /// </summary> /// <param name="pMapCtr"></param> /// <param name="id"></param> public static void LoadSatelliteResaultAreasByTaskID(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, int id, DateTime begin, DateTime end) { //读取并图上显示卫星观测区信息 Core.Map.MapHelper map = new Core.Map.MapHelper(pMapCtr); map.ClearAllElement(); //卫星观测区域 Core.DAL.SatelliteResault dal_satelliteResault = new Core.DAL.SatelliteResault(); list_model = new List <Core.Model.SatelliteResault>(); IEnvelope envelope = null; try { list_model = dal_satelliteResault.GetListByTaskID(id, begin, end); if (list_model.Count == 0) { MessageBox.Show("该灾区尚未生成任务区!"); return; } //加载 foreach (Core.Model.SatelliteResault t_model in list_model) { try { LoadSatelliteResaultArea(map, t_model); IPolygon pPolygon = Core.Generic.Convertor.ToPolygon(t_model.POLYGONSTRING); //获取多个Polygon的Envelope外包矩形 if (envelope == null) { envelope = pPolygon.Envelope; } else { envelope.Union(pPolygon.Envelope); } } catch (Exception ex) { continue; } } if (!envelope.IsEmpty) { envelope.Expand(1.1, 1.1, true); } pMapCtr.Extent = envelope; pMapCtr.ActiveView.Refresh(); } catch (Exception ex) { MessageBox.Show("错误:" + ex); } }
/// <summary> /// 高亮IGeometry /// </summary> /// <param name="myAxMapControl">AxMapControl扩展对象</param> /// <param name="myIGeometry">需要高亮的IGeometry</param> public static void FlashIGeometry(this ESRI.ArcGIS.Controls.AxMapControl myAxMapControl, IGeometry myIGeometry) { ISimpleMarkerSymbol myISimpleMarkerSymbol = new SimpleMarkerSymbolClass(); myISimpleMarkerSymbol.Size = 18; IRgbColor myIRgbColor = new RgbColorClass(); myIRgbColor.Green = 255; myISimpleMarkerSymbol.Color = myIRgbColor; myISimpleMarkerSymbol.Style = esriSimpleMarkerStyle.esriSMSDiamond; myAxMapControl.FlashIGeometry(myIGeometry, myISimpleMarkerSymbol as ISymbol); }
/// <summary> /// 高亮IGeometry /// </summary> /// <param name="myAxMapControl">AxMapControl扩展对象</param> /// <param name="myIGeometry">需要高亮的IGeometry</param> /// <param name="myISymbol">高亮样式</param> public static void FlashIGeometry(this ESRI.ArcGIS.Controls.AxMapControl myAxMapControl, IGeometry myIGeometry, ISymbol myISymbol) { Timer myTimer = new Timer(); myTimer.Interval = 2000; myTimer.Start(); myTimer.Tick += (s, e) => { myTimer.Stop(); myAxMapControl.FlashShape(myIGeometry, 5, 100, myISymbol); }; }
public ArcMapBusiness(MapFrame.Core.Interface.IMapLogic _mapLogic, ESRI.ArcGIS.Controls.AxMapControl _axMapControl1) { mapLogic = _mapLogic; axMapControl1 = _axMapControl1; elementMgr = new ArcMapElementMgr(); trackMgr = new TrackLineManager(); mapLogic.AddLayer(objLayer); mapLogic.AddLayer(trackLineLayer); EventPublisher.TSDataEvent += EventPublisher_TSDataEvent; }
/// <summary> /// 通过IFeature获取IFeatureLayer /// </summary> /// <param name="myAxMapControl">AxMapControl扩展对象</param> /// <param name="myIFeature">IFeature对象</param> /// <returns>IFeatureLayer对象</returns> public static IFeatureLayer GetFeatureLayer(this ESRI.ArcGIS.Controls.AxMapControl myAxMapControl, IFeature myIFeature) { List <IFeatureLayer> lstIFeatureLayer = myAxMapControl.GetAllIFeatureLayers(); for (int i = 0; i < lstIFeatureLayer.Count; i++) { IFeatureClass myIFeatureClass = lstIFeatureLayer[i].FeatureClass; if (myIFeatureClass == myIFeature.Class) { return(lstIFeatureLayer[i]); } } return(null); }
public static bool op = false;//fale--单元格数量创建灾区;true--单元格大小创建灾区 /// <summary> /// 生成任务区域 /// </summary> /// <param name="DID">灾区ID</param> /// <param name="GridHeight">单元格高度</param> /// <param name="GridWidth">单元格长度</param> /// <param name="pMapCtr">地图控件</param> public static void GenerateTask(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, int DID, double GridWidth, double GridHeight) { Core.Model.DisaAreaInfo di; Core.DAL.DisaAreaInfo dal = new Core.DAL.DisaAreaInfo(); try { di = dal.GetModel(DID); if (di == null) { throw (new Exception("读取灾区数据时出错")); } IPoint pnt = new ESRI.ArcGIS.Geometry.Point(); pnt.X = di.LON; pnt.Y = di.LAT; Core.Map.MapHelper maphelper = new Core.Map.MapHelper(pMapCtr); System.Drawing.Color color = Color.Blue; ISymbol symbol = maphelper.CreateSimpleFillSymbol(color, 1, esriSimpleFillStyle.esriSFSHollow); double radius = di.AffectedRadius / Core.Generic.SysEnviriment.LengthPerRad; MonitorTask.TaskAreaHelper th = new MonitorTask.TaskAreaHelper(); th.LoadMapData(); th.SetDisasterArea(di.LON - radius, di.LAT - radius, di.LON + radius, di.LAT + radius); th.GenerateTask(GridWidth, GridHeight); InitGrid = th.InitGrids; DataGrid = th.DataGrids; IEnvelope env = new Envelope() as IEnvelope; //foreach (MonitorTask.Geometry.Grid grid in InitGrid) //{ // env = new Envelope() as IEnvelope; // env.XMin = grid.XMin; // env.YMin = grid.YMin; // env.XMax = grid.XMax; // env.YMax = grid.YMax; // maphelper.AddElement(env, symbol, "grid"); //} //color = Color.Brown; //symbol = maphelper.CreateSimpleFillSymbol(color, 1, esriSimpleFillStyle.esriSFSDiagonalCross); //foreach (MonitorTask.Geometry.Grid grid in DataGrid) //{ // env = new Envelope() as IEnvelope; // env.XMin = grid.XMin; // env.YMin = grid.YMin; // env.XMax = grid.XMax; // env.YMax = grid.YMax; // maphelper.AddElement(env, symbol, "grid"); //} } catch (Exception ex) { throw (ex); } }
/// <summary> /// 获取所有ILayer对象 /// </summary> /// <param name="myAxMapControl">AxMapControl扩展对象</param> /// <returns>ILayer对象列表</returns> public static List <ILayer> GetAllILayers(this ESRI.ArcGIS.Controls.AxMapControl myAxMapControl) { List <ILayer> lstILayer = new List <ILayer>(); IEnumLayer myIEnumLayer = (myAxMapControl.Map as IMap).get_Layers(null, true); myIEnumLayer.Reset(); ILayer myILayer = myIEnumLayer.Next(); while (myILayer != null) { lstILayer.Add(myILayer); myILayer = myIEnumLayer.Next(); } return(lstILayer); }
private void InitializeComponent() { this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); this.SuspendLayout(); // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(0, 0); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.Size = new System.Drawing.Size(75, 23); this.axMapControl1.TabIndex = 0; ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// 加载观测区域列表 /// </summary> /// <param name="pnode"></param> public static void LoadSatelliteResaultList(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, TreeNode pnode, bool timeChecked) { int pid; int.TryParse(pnode.Tag.ToString().Substring(3), out pid); Core.DAL.SatelliteResault dal = new Core.DAL.SatelliteResault(); List <Core.Model.SatelliteResault> list_model = new List <Core.Model.SatelliteResault>(); TreeNode node; try { if (timeChecked) { list_model = dal.GetListByTaskIDTime(pid); } else { list_model = dal.GetListByTaskID(pid); } if (list_model.Count != 0) { pnode.Nodes.Clear(); } foreach (Core.Model.SatelliteResault model in list_model) { Core.Model.ImgLayoutTempTimewindow imgLayoutTempTimewindow = new Core.Model.ImgLayoutTempTimewindow(); Core.DAL.ImgLayoutTempTimewindow dal_imgLayoutTempTimewindow = new Core.DAL.ImgLayoutTempTimewindow(); imgLayoutTempTimewindow = dal_imgLayoutTempTimewindow.GetModel(model.LSTR_SEQID.ToString()); node = new TreeNode(); node.Text = imgLayoutTempTimewindow.STARTTIME.ToString("yyyy-MM-dd HH:mm:ss") + "\\" + imgLayoutTempTimewindow.SAT_STKNAME + "\\" + imgLayoutTempTimewindow.SENSOR_STKNAME; node.Tag = "I1|" + model.LSTR_SEQID;//I--表示观测结果,model.LSTR_SEQID--表示为观测结果ID node.ImageIndex = 4; node.SelectedImageIndex = 5; pnode.Nodes.Add(node); } } catch (Exception ex) { throw (ex); } finally { list_model = null; dal = null; } }
/// <summary> /// 根据图层名找到图层 /// </summary> /// <param name="myAxMapControl">AxMapControl扩展对象</param> /// <param name="strLayerName">图层名称</param> /// <returns>图层(ILayer)</returns> public static ILayer GetILayer(this ESRI.ArcGIS.Controls.AxMapControl myAxMapControl, string strLayerName) { IEnumLayer myIEnumLayer; myIEnumLayer = (myAxMapControl.Map as IMap).get_Layers(null, true); myIEnumLayer.Reset(); ILayer myILayer = myIEnumLayer.Next(); while (myILayer != null) { if (myILayer.Name.Equals(strLayerName, StringComparison.InvariantCultureIgnoreCase)) { return(myILayer); } myILayer = myIEnumLayer.Next(); } return(null); }
/// <summary> /// 根据观测方案定位观测区域 /// </summary> /// <param name="pMapCtr"></param> /// <param name="DID"></param> public static void PositionResaultAreasByTaskID(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, int DID) { Core.DAL.SatelliteResault dal = new Core.DAL.SatelliteResault(); List <Core.Model.SatelliteResault> list_model = new List <Core.Model.SatelliteResault>(); try { list_model = dal.GetListBySchemeID(DID); } catch (Exception ex) { throw (ex); } finally { list_model = null; dal = null; } }
/// <summary> /// 定位任务区 /// </summary> /// <param name="pMapCtr"></param> /// <param name="id"></param> public static void PositionTaskArea(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, int id) { Core.Model.TASK_LAYOUT_LIST model = new Core.Model.TASK_LAYOUT_LIST(); Core.DAL.TASK_LAYOUT_LIST dal = new Core.DAL.TASK_LAYOUT_LIST(); try { model = dal.GetModel(id); IEnvelope envelope; if (model.TASKTYPE == 0) { IPoint taskPoint = new PointClass(); taskPoint.PutCoords(Convert.ToDouble(model.LON), Convert.ToDouble(model.LAT)); envelope = taskPoint.Envelope; } else { string[] points = model.AREASTRING.Split(' '); string polygon = ""; for (int i = 0; i < points.Length - 1; i += 2) { polygon += points[i + 1] + "," + points[i] + ";"; } IPolygon taskarea = Core.Generic.Convertor.ToPolygon(polygon); envelope = taskarea.Envelope; } if (!envelope.IsEmpty) { envelope.Expand(2, 2, true); } pMapCtr.Extent = envelope; pMapCtr.ActiveView.Refresh(); } catch (Exception ex) { throw (ex); } finally { model = null; dal = null; } }
public static void NewMapDoc(Control.ControlCollection controls, ESRI.ArcGIS.Controls.AxMapControl mainMapControl) { try { //实例化AxMapControl控件,并加入Form的Controls ESRI.ArcGIS.Controls.AxMapControl axMapControl = new ESRI.ArcGIS.Controls.AxMapControl(); ((System.ComponentModel.ISupportInitialize)(axMapControl)).BeginInit(); controls.Add(axMapControl); ((System.ComponentModel.ISupportInitialize)(axMapControl)).EndInit(); //实例化SaveFileDialog控件 SaveFileDialog pSaveFileDialog = new SaveFileDialog(); pSaveFileDialog.Title = "输入需要新建地图文档的名称"; pSaveFileDialog.Filter = "地图文件(*.mxd)|*.mxd"; pSaveFileDialog.OverwritePrompt = true; pSaveFileDialog.RestoreDirectory = true; if (pSaveFileDialog.ShowDialog() == DialogResult.OK) {//保存地图文档 string filename = pSaveFileDialog.FileName; IMapDocument pMapDocument = new MapDocumentClass(); pMapDocument.New(filename); axMapControl.Map = pMapDocument.get_Map(0); axMapControl.DocumentFilename = pMapDocument.DocumentFilename; pMapDocument.Close(); mainMapControl.LoadMxFile(filename); mainMapControl.Refresh(); MessageBox.Show("新建地图文档成功!", "信息提示", MessageBoxButtons.OK); return; } else { return; } } catch (Exception exc) { MessageBox.Show("新建地图文档失败!" + exc.Message, "信息提示", MessageBoxButtons.OK); return; } }
/// <summary> /// 加载观测任务列表 /// </summary> /// <param name="pnode"></param> public static void LoadSatelliteTaskList(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, TreeNode pnode, bool timeChecked) { int id; int.TryParse(pnode.Tag.ToString().Substring(3), out id); Core.DAL.TASK_LAYOUT_LIST dal = new Core.DAL.TASK_LAYOUT_LIST(); List <Core.Model.TASK_LAYOUT_LIST> list_model = new List <Core.Model.TASK_LAYOUT_LIST>(); TreeNode node; try { list_model = dal.GetList(id); if (list_model.Count != 0) { pnode.Nodes.Clear(); } //Core.Map.MapHelper map = new Core.Map.MapHelper(pMapCtr); //map.ClearAllElement(); foreach (Core.Model.TASK_LAYOUT_LIST model in list_model) { node = new TreeNode(); node.Text = model.TASKNAME; node.Tag = "T1|" + model.TASKID;//T--表示观测任务,model.TASKID--表示为任务ID node.ImageIndex = 2; node.SelectedImageIndex = 3; pnode.Nodes.Add(node); LoadSatelliteResaultList(pMapCtr, node, timeChecked); } } catch (Exception ex) { throw (ex); } finally { list_model = null; dal = null; } }
public Form2(Form1 f1, IMap map, ESRI.ArcGIS.Controls.AxMapControl axMapControl1) { InitializeComponent(); this.f1 = f1; this.map = map; this.axMapControl1 = axMapControl1; IEnumLayer allLayers = map.get_Layers(); ILayer layer = allLayers.Next(); while (layer != null) { comboBox1.Items.Add(layer.Name.ToString()); layer = allLayers.Next(); } comboBox1.SelectedItem = comboBox1.Items[0]; //add methods to comboBox2 comboBox2.Items.Add("Create a new selection"); comboBox2.Items.Add("Add to current selection"); comboBox2.Items.Add("Remove from current selection"); comboBox2.SelectedItem = comboBox2.Items[0]; }
/// <summary> /// 绘制工作面预警 /// </summary> public void taskAlarm(LibGeometry.Vector3_DW[] vectors, ESRI.ArcGIS.Controls.AxMapControl map) { //1、提取散点 //2、先由散点创建FeatureClass //3、由FeatureClass创建TIN DirectoryInfo dir = new DirectoryInfo(Application.StartupPath + "\\tempRaster"); if (dir.Exists) { try { DirectoryInfo[] childs = dir.GetDirectories(); foreach (DirectoryInfo child in childs) { child.Delete(true); } dir.Delete(true); Directory.CreateDirectory(Application.StartupPath + "\\tempRaster"); } catch (Exception e) { MessageBox.Show(e.Message); } } else { Directory.CreateDirectory(Application.StartupPath + "\\tempRaster"); } IFeatureClass pFeatureClass = GetFeatureCLass(vectors, map); IField pField = pFeatureClass.Fields.get_Field(pFeatureClass.FindField(" CoordinateZ")); CreateRasterfromFeature(Application.StartupPath + "\\tempRaster"); //map.AddLayer(pTinLayer as ILayer); }
/// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); this.axTOCControl1 = new ESRI.ArcGIS.Controls.AxTOCControl(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(93, 3); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 28); this.button1.TabIndex = 3; this.button1.Text = "渲染"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(3, 3); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 28); this.button2.TabIndex = 3; this.button2.Text = "添加栅格"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // axMapControl1 // this.axMapControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.axMapControl1.Location = new System.Drawing.Point(0, 0); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(707, 482); this.axMapControl1.TabIndex = 25; // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(76, 118); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(32, 32); this.axLicenseControl1.TabIndex = 26; // // axTOCControl1 // this.axTOCControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.axTOCControl1.Location = new System.Drawing.Point(0, 0); this.axTOCControl1.Name = "axTOCControl1"; this.axTOCControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axTOCControl1.OcxState"))); this.axTOCControl1.Size = new System.Drawing.Size(182, 437); this.axTOCControl1.TabIndex = 27; // // splitContainer1 // this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.Location = new System.Drawing.Point(0, 0); this.splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.splitContainer2); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.axLicenseControl1); this.splitContainer1.Panel2.Controls.Add(this.axMapControl1); this.splitContainer1.Size = new System.Drawing.Size(893, 482); this.splitContainer1.SplitterDistance = 182; this.splitContainer1.TabIndex = 28; // // splitContainer2 // this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer2.Location = new System.Drawing.Point(0, 0); this.splitContainer2.Name = "splitContainer2"; this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer2.Panel1 // this.splitContainer2.Panel1.Controls.Add(this.button2); this.splitContainer2.Panel1.Controls.Add(this.button1); // // splitContainer2.Panel2 // this.splitContainer2.Panel2.Controls.Add(this.axTOCControl1); this.splitContainer2.Size = new System.Drawing.Size(182, 482); this.splitContainer2.SplitterDistance = 41; this.splitContainer2.TabIndex = 29; // // frmMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(893, 482); this.Controls.Add(this.splitContainer1); this.Name = "frmMain"; this.Text = "frmMain"; this.Load += new System.EventHandler(this.frmMain_Load); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).EndInit(); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.ResumeLayout(false); this.splitContainer2.Panel1.ResumeLayout(false); this.splitContainer2.Panel2.ResumeLayout(false); this.splitContainer2.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExcelImportForm)); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.openExcelDialog = new System.Windows.Forms.OpenFileDialog(); this.panel_title_bar = new System.Windows.Forms.Panel(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.close = new System.Windows.Forms.PictureBox(); this.min = new System.Windows.Forms.PictureBox(); this.panel1 = new System.Windows.Forms.Panel(); this.CreateShpFile = new System.Windows.Forms.Button(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.excelGridView = new System.Windows.Forms.DataGridView(); this.Open = new System.Windows.Forms.Button(); this.excelCmbBox = new System.Windows.Forms.ComboBox(); this.OpenExcel = new System.Windows.Forms.Button(); this.panel_title_bar.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.close)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.min)).BeginInit(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.excelGridView)).BeginInit(); this.SuspendLayout(); // // notifyIcon1 // this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon"))); this.notifyIcon1.Text = "ExcelToLayer"; this.notifyIcon1.Visible = true; this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick); // // panel_title_bar // this.panel_title_bar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(164)))), ((int)(((byte)(228))))); this.panel_title_bar.BackgroundImage = global::ArcGISFoundation.Properties.Resources.banners; this.panel_title_bar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.panel_title_bar.Controls.Add(this.pictureBox2); this.panel_title_bar.Controls.Add(this.pictureBox1); this.panel_title_bar.Controls.Add(this.close); this.panel_title_bar.Controls.Add(this.min); this.panel_title_bar.Dock = System.Windows.Forms.DockStyle.Top; this.panel_title_bar.Location = new System.Drawing.Point(0, 0); this.panel_title_bar.Name = "panel_title_bar"; this.panel_title_bar.Size = new System.Drawing.Size(998, 65); this.panel_title_bar.TabIndex = 7; this.panel_title_bar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel_title_bar_MouseDown); this.panel_title_bar.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panel_title_bar_MouseMove); // // pictureBox2 // this.pictureBox2.BackColor = System.Drawing.Color.Transparent; this.pictureBox2.Image = global::ArcGISFoundation.Properties.Resources.import_logo_title; this.pictureBox2.Location = new System.Drawing.Point(66, 14); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(142, 39); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBox2.TabIndex = 9; this.pictureBox2.TabStop = false; // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.Color.Transparent; this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left; this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(0, 0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(72, 65); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox1.TabIndex = 8; this.pictureBox1.TabStop = false; // // close // this.close.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.close.BackColor = System.Drawing.Color.Transparent; this.close.Image = global::ArcGISFoundation.Properties.Resources.close; this.close.Location = new System.Drawing.Point(959, -1); this.close.Name = "close"; this.close.Size = new System.Drawing.Size(27, 22); this.close.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.close.TabIndex = 7; this.close.TabStop = false; this.close.Click += new System.EventHandler(this.close_Click); this.close.MouseEnter += new System.EventHandler(this.close_MouseEnter); this.close.MouseLeave += new System.EventHandler(this.close_MouseLeave); // // min // this.min.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.min.BackColor = System.Drawing.Color.Transparent; this.min.Image = global::ArcGISFoundation.Properties.Resources.min; this.min.Location = new System.Drawing.Point(925, -1); this.min.Name = "min"; this.min.Size = new System.Drawing.Size(27, 22); this.min.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.min.TabIndex = 5; this.min.TabStop = false; this.min.Click += new System.EventHandler(this.min_Click); this.min.MouseEnter += new System.EventHandler(this.min_MouseEnter); this.min.MouseLeave += new System.EventHandler(this.min_MouseLeave); // // panel1 // this.panel1.BackColor = System.Drawing.Color.Transparent; this.panel1.Controls.Add(this.CreateShpFile); this.panel1.Controls.Add(this.axLicenseControl1); this.panel1.Controls.Add(this.axMapControl1); this.panel1.Controls.Add(this.excelGridView); this.panel1.Controls.Add(this.Open); this.panel1.Controls.Add(this.excelCmbBox); this.panel1.Controls.Add(this.OpenExcel); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 65); this.panel1.Name = "panel1"; this.panel1.Padding = new System.Windows.Forms.Padding(3); this.panel1.Size = new System.Drawing.Size(998, 379); this.panel1.TabIndex = 8; this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint); // // CreateShpFile // this.CreateShpFile.BackgroundImage = global::ArcGISFoundation.Properties.Resources.banner; this.CreateShpFile.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.CreateShpFile.ForeColor = System.Drawing.SystemColors.ControlLightLight; this.CreateShpFile.Location = new System.Drawing.Point(362, 336); this.CreateShpFile.Name = "CreateShpFile"; this.CreateShpFile.Size = new System.Drawing.Size(125, 32); this.CreateShpFile.TabIndex = 13; this.CreateShpFile.Text = "创建Shape文件"; this.CreateShpFile.UseVisualStyleBackColor = true; this.CreateShpFile.Click += new System.EventHandler(this.CreateShpFile_Click); // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(653, 146); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(32, 32); this.axLicenseControl1.TabIndex = 12; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(508, 18); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(482, 312); this.axMapControl1.TabIndex = 11; // // excelGridView // this.excelGridView.AllowUserToAddRows = false; this.excelGridView.BackgroundColor = System.Drawing.SystemColors.Control; this.excelGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.excelGridView.Location = new System.Drawing.Point(8, 47); this.excelGridView.Name = "excelGridView"; this.excelGridView.RowTemplate.Height = 23; this.excelGridView.Size = new System.Drawing.Size(479, 283); this.excelGridView.TabIndex = 10; // // Open // this.Open.BackgroundImage = global::ArcGISFoundation.Properties.Resources.banner; this.Open.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Open.ForeColor = System.Drawing.SystemColors.ControlLight; this.Open.Location = new System.Drawing.Point(396, 10); this.Open.Margin = new System.Windows.Forms.Padding(0); this.Open.Name = "Open"; this.Open.Size = new System.Drawing.Size(62, 30); this.Open.TabIndex = 9; this.Open.Text = "打开"; this.Open.UseVisualStyleBackColor = true; this.Open.Click += new System.EventHandler(this.Open_Click); // // excelCmbBox // this.excelCmbBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.excelCmbBox.FormattingEnabled = true; this.excelCmbBox.Location = new System.Drawing.Point(136, 13); this.excelCmbBox.Name = "excelCmbBox"; this.excelCmbBox.Size = new System.Drawing.Size(244, 25); this.excelCmbBox.TabIndex = 8; // // OpenExcel // this.OpenExcel.BackgroundImage = global::ArcGISFoundation.Properties.Resources.banner; this.OpenExcel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.OpenExcel.ForeColor = System.Drawing.SystemColors.ControlLight; this.OpenExcel.Location = new System.Drawing.Point(11, 10); this.OpenExcel.Name = "OpenExcel"; this.OpenExcel.Size = new System.Drawing.Size(115, 29); this.OpenExcel.TabIndex = 7; this.OpenExcel.Text = "打开Excel"; this.OpenExcel.UseVisualStyleBackColor = true; this.OpenExcel.Click += new System.EventHandler(this.OpenExcel_Click); // // ExcelImportForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(232)))), ((int)(((byte)(255))))); this.ClientSize = new System.Drawing.Size(998, 444); this.Controls.Add(this.panel1); this.Controls.Add(this.panel_title_bar); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "ExcelImportForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "导入Excel"; this.Load += new System.EventHandler(this.ExcelImportForm_Load); this.panel_title_bar.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.close)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.min)).EndInit(); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.excelGridView)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// 获取交点 /// </summary> /// <param name="TaskAreas"></param> /// <param name="map"></param> public static void getIntersect(ESRI.ArcGIS.Controls.AxMapControl pMapCtr) { Core.Map.MapHelper map = new Core.Map.MapHelper(pMapCtr); Core.Generic.myXML xml = new Core.Generic.myXML(System.Windows.Forms.Application.StartupPath + "\\Setting.xml"); try { IFeatureClass pFeatureClass = null; Core.Model.DisaCrossPoint gatherPoint = new Core.Model.DisaCrossPoint(); Core.DAL.DisaCrossPoint dal = new Core.DAL.DisaCrossPoint(); //删除以前生成的交点 dal.Deletes(list_model[0].PID); map.getNetWorkData(ref pFeatureClass); if (list_model.Count == 0) { MessageBox.Show("该灾区尚未生成任务区!"); return; } //pIntersectPoint = new List<IPoint>(); string Roadtype = xml.GetElement("FilterPara", "RoadType"); string[] typeArray = Roadtype.Split(','); string whereclause = ""; if (Roadtype != null) { for (int i = 0; i < typeArray.Length; i++) { if (i != (typeArray.Length - 1)) { whereclause += "Type=" + typeArray[i] + " or "; } else { whereclause += "Type=" + typeArray[i]; } } } foreach (Core.Model.TaskAreas taskarea in list_model) { IPolygon pPolygon = CoScheduling.Core.Generic.Convertor.ToPolygon(taskarea.PolygonString); //过滤道路网 IGeometry pGeometry = pPolygon as IGeometry; ISpatialFilter pSpatialfilter = new SpatialFilterClass(); pSpatialfilter.Geometry = pGeometry; pSpatialfilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects; pSpatialfilter.WhereClause = whereclause; pSpatialfilter.GeometryField = "Shape"; IFeatureCursor FeatureCursor = pFeatureClass.Search(pSpatialfilter, false); IFeature pFeature = FeatureCursor.NextFeature(); int count = 1; while (pFeature != null) { IPolyline pPolyline = pFeature.ShapeCopy as IPolyline; ITopologicalOperator pTopologicalOperator = pPolyline as ITopologicalOperator; IGeometry pGeometry1 = pTopologicalOperator.Intersect(pPolygon, esriGeometryDimension.esriGeometry0Dimension) as IGeometry; if (!pGeometry1.IsEmpty) { IPointCollection Pc = pGeometry1 as IPointCollection; ISymbol symbol = map.CreateSimpleSymbol(Color.Red, 8, ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle); for (int i = 0; i < Pc.PointCount; i++) { //将交点显示在地图上 IPoint point = Pc.get_Point(i); map.AddElement(Pc.get_Point(i), symbol, "Intersect|" + taskarea.ID + "|" + taskarea.PID); //将交点存储到数据库中 gatherPoint.LON = point.X; gatherPoint.LAT = point.Y; gatherPoint.PID = taskarea.ID; gatherPoint.PName = "交点(" + count++ + ")"; dal.Add(gatherPoint); //pIntersectPoint.Add(Pc.get_Point(i)); } } pFeature = FeatureCursor.NextFeature(); } } } catch (Exception ex) { throw ex; } finally { TaskAreas = null; } }
/// <summary> /// 获取交点 /// </summary> /// <param name="pMapCtr"></param> /// <param name="id"></param> public static void getIntersect(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, int id) { Core.Map.MapHelper map = new Core.Map.MapHelper(pMapCtr); Core.Generic.myXML xml = new Core.Generic.myXML(System.Windows.Forms.Application.StartupPath + "\\Setting.xml"); try { IFeatureClass pFeatureClass = null; Core.Model.DisaAreaInfo model = new Core.Model.DisaAreaInfo(); Core.DAL.DisaAreaInfo dal0 = new Core.DAL.DisaAreaInfo(); Core.Model.DisaCrossPoint gatherPoint = new Core.Model.DisaCrossPoint(); Core.DAL.DisaCrossPoint dal = new Core.DAL.DisaCrossPoint(); //删除以前生成的交点 dal.Deletes(id); map.getNetWorkData(ref pFeatureClass); //pIntersectPoint = new List<IPoint>(); string Roadtype = xml.GetElement("FilterPara", "RoadType"); string[] typeArray = Roadtype.Split(','); string whereclause = ""; if (Roadtype != null) { for (int i = 0; i < typeArray.Length; i++) { if (i != (typeArray.Length - 1)) { whereclause += "Type=" + typeArray[i] + " or "; } else { whereclause += "Type=" + typeArray[i]; } } } //生成灾区影响范围Geometry model = dal0.GetModel(id); IPoint pPoint = new PointClass(); pPoint.PutCoords(model.LON, model.LAT); ITopologicalOperator pTopoOp = default(ITopologicalOperator); IGeometry geoBuffer = null; pTopoOp = pPoint as ITopologicalOperator; geoBuffer = pTopoOp.Buffer(model.AffectedRadius / Core.Generic.SysEnviriment.LengthPerRad); ISpatialFilter pSpatialfilter = new SpatialFilterClass(); pSpatialfilter.Geometry = geoBuffer; pSpatialfilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelCrosses; pSpatialfilter.WhereClause = whereclause; pSpatialfilter.GeometryField = "Shape"; IFeatureCursor FeatureCursor = pFeatureClass.Search(pSpatialfilter, false); IFeature pFeature = FeatureCursor.NextFeature(); int count = 1; while (pFeature != null) { IPolyline pPolyline = pFeature.ShapeCopy as IPolyline; ITopologicalOperator pTopologicalOperator = pPolyline as ITopologicalOperator; IGeometry pGeometry1 = pTopologicalOperator.Intersect(geoBuffer as IPolygon, esriGeometryDimension.esriGeometry0Dimension) as IGeometry; if (!pGeometry1.IsEmpty) { IPointCollection Pc = pGeometry1 as IPointCollection; ISymbol symbol = map.CreateSimpleSymbol(Color.Red, 8, ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle); for (int i = 0; i < Pc.PointCount; i++) { //将交点显示在地图上 IPoint point = Pc.get_Point(i); map.AddElement(Pc.get_Point(i), symbol, "Intersect|" + id); //将交点存储到数据库中 gatherPoint.LON = point.X; gatherPoint.LAT = point.Y; gatherPoint.PID = id; gatherPoint.PName = "交点(" + count++ + ")"; dal.Add(gatherPoint); //pIntersectPoint.Add(Pc.get_Point(i)); } } pFeature = FeatureCursor.NextFeature(); } pMapCtr.ActiveView.Refresh(); } catch (Exception ex) { throw ex; } finally { TaskAreas = null; } }
public SearchByAttrFrm(ESRI.ArcGIS.Controls.AxMapControl pMapControl) { InitializeComponent(); m_MapControl = pMapControl;//得到当前AxMapControl,以便下一步操作 }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CADView)); this.CmdFullExtent = new System.Windows.Forms.Button(); this.Label2 = new System.Windows.Forms.Label(); this.Label1 = new System.Windows.Forms.Label(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); this.SuspendLayout(); // // CmdFullExtent // this.CmdFullExtent.BackColor = System.Drawing.SystemColors.Control; this.CmdFullExtent.Cursor = System.Windows.Forms.Cursors.Default; this.CmdFullExtent.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.CmdFullExtent.ForeColor = System.Drawing.SystemColors.ControlText; this.CmdFullExtent.Location = new System.Drawing.Point(8, 328); this.CmdFullExtent.Name = "CmdFullExtent"; this.CmdFullExtent.RightToLeft = System.Windows.Forms.RightToLeft.No; this.CmdFullExtent.Size = new System.Drawing.Size(97, 33); this.CmdFullExtent.TabIndex = 4; this.CmdFullExtent.Text = "Full Extent"; this.CmdFullExtent.Click += new System.EventHandler(this.CmdFullExtent_Click); // // Label2 // this.Label2.BackColor = System.Drawing.SystemColors.Control; this.Label2.Cursor = System.Windows.Forms.Cursors.Default; this.Label2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Label2.ForeColor = System.Drawing.SystemColors.ControlText; this.Label2.Location = new System.Drawing.Point(112, 344); this.Label2.Name = "Label2"; this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label2.Size = new System.Drawing.Size(401, 17); this.Label2.TabIndex = 6; this.Label2.Text = "Right mouse button to pan."; // // Label1 // this.Label1.BackColor = System.Drawing.SystemColors.Control; this.Label1.Cursor = System.Windows.Forms.Cursors.Default; this.Label1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Label1.ForeColor = System.Drawing.SystemColors.ControlText; this.Label1.Location = new System.Drawing.Point(112, 328); this.Label1.Name = "Label1"; this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label1.Size = new System.Drawing.Size(401, 17); this.Label1.TabIndex = 5; this.Label1.Text = "Left mouse button to drag a rectangle to zoom in."; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(8, 8); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(576, 312); this.axMapControl1.TabIndex = 7; this.axMapControl1.OnMouseDown += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseDownEventHandler(this.axMapControl1_OnMouseDown); // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(24, 24); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(200, 50); this.axLicenseControl1.TabIndex = 8; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(592, 366); this.Controls.Add(this.axLicenseControl1); this.Controls.Add(this.axMapControl1); this.Controls.Add(this.CmdFullExtent); this.Controls.Add(this.Label2); this.Controls.Add(this.Label1); this.Name = "Form1"; this.Text = "MapControl CAD Viewer"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.chkShowTips = new System.Windows.Forms.CheckBox(); this.cmdLoadData = new System.Windows.Forms.Button(); this.cboDataField = new System.Windows.Forms.ComboBox(); this.cboDataLayer = new System.Windows.Forms.ComboBox(); this.Label2 = new System.Windows.Forms.Label(); this.Label1 = new System.Windows.Forms.Label(); this.cmdFullExtent = new System.Windows.Forms.Button(); this.Label3 = new System.Windows.Forms.Label(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); this.chkTransparent = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); this.SuspendLayout(); // // chkShowTips // this.chkShowTips.BackColor = System.Drawing.SystemColors.Control; this.chkShowTips.Cursor = System.Windows.Forms.Cursors.Default; this.chkShowTips.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowTips.ForeColor = System.Drawing.SystemColors.ControlText; this.chkShowTips.Location = new System.Drawing.Point(8, 40); this.chkShowTips.Name = "chkShowTips"; this.chkShowTips.RightToLeft = System.Windows.Forms.RightToLeft.No; this.chkShowTips.Size = new System.Drawing.Size(129, 25); this.chkShowTips.TabIndex = 10; this.chkShowTips.Text = "Show Map Tips"; this.chkShowTips.UseVisualStyleBackColor = false; this.chkShowTips.CheckedChanged += new System.EventHandler(this.chkShowTips_CheckedChanged); this.chkShowTips.CheckStateChanged += new System.EventHandler(this.chkShowTips_CheckStateChanged); // // cmdLoadData // this.cmdLoadData.BackColor = System.Drawing.SystemColors.Control; this.cmdLoadData.Cursor = System.Windows.Forms.Cursors.Default; this.cmdLoadData.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdLoadData.ForeColor = System.Drawing.SystemColors.ControlText; this.cmdLoadData.Location = new System.Drawing.Point(8, 8); this.cmdLoadData.Name = "cmdLoadData"; this.cmdLoadData.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cmdLoadData.Size = new System.Drawing.Size(113, 25); this.cmdLoadData.TabIndex = 9; this.cmdLoadData.Text = "Load Document..."; this.cmdLoadData.UseVisualStyleBackColor = false; this.cmdLoadData.Click += new System.EventHandler(this.cmdLoadData_Click); // // cboDataField // this.cboDataField.BackColor = System.Drawing.SystemColors.Window; this.cboDataField.Cursor = System.Windows.Forms.Cursors.Default; this.cboDataField.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cboDataField.ForeColor = System.Drawing.SystemColors.WindowText; this.cboDataField.Location = new System.Drawing.Point(176, 40); this.cboDataField.Name = "cboDataField"; this.cboDataField.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cboDataField.Size = new System.Drawing.Size(161, 22); this.cboDataField.TabIndex = 8; this.cboDataField.SelectedIndexChanged += new System.EventHandler(this.cboDataField_SelectedIndexChanged); // // cboDataLayer // this.cboDataLayer.BackColor = System.Drawing.SystemColors.Window; this.cboDataLayer.Cursor = System.Windows.Forms.Cursors.Default; this.cboDataLayer.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cboDataLayer.ForeColor = System.Drawing.SystemColors.WindowText; this.cboDataLayer.Location = new System.Drawing.Point(176, 16); this.cboDataLayer.Name = "cboDataLayer"; this.cboDataLayer.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cboDataLayer.Size = new System.Drawing.Size(161, 22); this.cboDataLayer.TabIndex = 7; this.cboDataLayer.SelectedIndexChanged += new System.EventHandler(this.cboDataLayer_SelectedIndexChanged); // // Label2 // this.Label2.BackColor = System.Drawing.SystemColors.Control; this.Label2.Cursor = System.Windows.Forms.Cursors.Default; this.Label2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label2.ForeColor = System.Drawing.SystemColors.ControlText; this.Label2.Location = new System.Drawing.Point(136, 40); this.Label2.Name = "Label2"; this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label2.Size = new System.Drawing.Size(33, 17); this.Label2.TabIndex = 12; this.Label2.Text = "Fields:"; // // Label1 // this.Label1.BackColor = System.Drawing.SystemColors.Control; this.Label1.Cursor = System.Windows.Forms.Cursors.Default; this.Label1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label1.ForeColor = System.Drawing.SystemColors.ControlText; this.Label1.Location = new System.Drawing.Point(136, 16); this.Label1.Name = "Label1"; this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label1.Size = new System.Drawing.Size(41, 17); this.Label1.TabIndex = 11; this.Label1.Text = "Layers:"; // // cmdFullExtent // this.cmdFullExtent.BackColor = System.Drawing.SystemColors.Control; this.cmdFullExtent.Cursor = System.Windows.Forms.Cursors.Default; this.cmdFullExtent.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdFullExtent.ForeColor = System.Drawing.SystemColors.ControlText; this.cmdFullExtent.Location = new System.Drawing.Point(224, 365); this.cmdFullExtent.Name = "cmdFullExtent"; this.cmdFullExtent.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cmdFullExtent.Size = new System.Drawing.Size(113, 25); this.cmdFullExtent.TabIndex = 13; this.cmdFullExtent.Text = "Zoom to Full Extent"; this.cmdFullExtent.UseVisualStyleBackColor = false; this.cmdFullExtent.Click += new System.EventHandler(this.cmdFullExtent_Click); // // Label3 // this.Label3.BackColor = System.Drawing.SystemColors.Control; this.Label3.Cursor = System.Windows.Forms.Cursors.Default; this.Label3.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label3.ForeColor = System.Drawing.SystemColors.ControlText; this.Label3.Location = new System.Drawing.Point(8, 373); this.Label3.Name = "Label3"; this.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label3.Size = new System.Drawing.Size(209, 17); this.Label3.TabIndex = 14; this.Label3.Text = "Left mouse button to zoomin, right to pan"; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(8, 88); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(328, 272); this.axMapControl1.TabIndex = 15; this.axMapControl1.OnMouseDown += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseDownEventHandler(this.axMapControl1_OnMouseDown); // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(300, 68); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(32, 32); this.axLicenseControl1.TabIndex = 16; // // chkTransparent // this.chkTransparent.AutoSize = true; this.chkTransparent.Location = new System.Drawing.Point(8, 65); this.chkTransparent.Name = "chkTransparent"; this.chkTransparent.Size = new System.Drawing.Size(106, 17); this.chkTransparent.TabIndex = 17; this.chkTransparent.Text = "Transparent Tips"; this.chkTransparent.UseVisualStyleBackColor = true; this.chkTransparent.CheckedChanged += new System.EventHandler(this.chkTransparent_CheckedChanged); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(344, 400); this.Controls.Add(this.chkTransparent); this.Controls.Add(this.axLicenseControl1); this.Controls.Add(this.axMapControl1); this.Controls.Add(this.cmdFullExtent); this.Controls.Add(this.Label3); this.Controls.Add(this.chkShowTips); this.Controls.Add(this.cmdLoadData); this.Controls.Add(this.cboDataField); this.Controls.Add(this.cboDataLayer); this.Controls.Add(this.Label2); this.Controls.Add(this.Label1); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CADView)); this.CmdFullExtent = new System.Windows.Forms.Button(); this.Label2 = new System.Windows.Forms.Label(); this.Label1 = new System.Windows.Forms.Label(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); this.SuspendLayout(); // // CmdFullExtent // this.CmdFullExtent.BackColor = System.Drawing.SystemColors.Control; this.CmdFullExtent.Cursor = System.Windows.Forms.Cursors.Default; this.CmdFullExtent.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.CmdFullExtent.ForeColor = System.Drawing.SystemColors.ControlText; this.CmdFullExtent.Location = new System.Drawing.Point(8, 328); this.CmdFullExtent.Name = "CmdFullExtent"; this.CmdFullExtent.RightToLeft = System.Windows.Forms.RightToLeft.No; this.CmdFullExtent.Size = new System.Drawing.Size(97, 33); this.CmdFullExtent.TabIndex = 4; this.CmdFullExtent.Text = "Full Extent"; this.CmdFullExtent.Click += new System.EventHandler(this.CmdFullExtent_Click); // // Label2 // this.Label2.BackColor = System.Drawing.SystemColors.Control; this.Label2.Cursor = System.Windows.Forms.Cursors.Default; this.Label2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Label2.ForeColor = System.Drawing.SystemColors.ControlText; this.Label2.Location = new System.Drawing.Point(112, 344); this.Label2.Name = "Label2"; this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label2.Size = new System.Drawing.Size(401, 17); this.Label2.TabIndex = 6; this.Label2.Text = "Right mouse button to pan."; // // Label1 // this.Label1.BackColor = System.Drawing.SystemColors.Control; this.Label1.Cursor = System.Windows.Forms.Cursors.Default; this.Label1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Label1.ForeColor = System.Drawing.SystemColors.ControlText; this.Label1.Location = new System.Drawing.Point(112, 328); this.Label1.Name = "Label1"; this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label1.Size = new System.Drawing.Size(401, 17); this.Label1.TabIndex = 5; this.Label1.Text = "Left mouse button to drag a rectangle to zoom in."; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(8, 8); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(576, 312); this.axMapControl1.TabIndex = 7; this.axMapControl1.OnMouseDown += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseDownEventHandler(this.axMapControl1_OnMouseDown); // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(24, 24); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(200, 50); this.axLicenseControl1.TabIndex = 8; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(592, 366); this.Controls.Add(this.axLicenseControl1); this.Controls.Add(this.axMapControl1); this.Controls.Add(this.CmdFullExtent); this.Controls.Add(this.Label2); this.Controls.Add(this.Label1); this.Name = "Form1"; this.Text = "MapControl CAD Viewer"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.chkExtension = new System.Windows.Forms.CheckBox(); this.Label3 = new System.Windows.Forms.Label(); this.Label1 = new System.Windows.Forms.Label(); this.Label2 = new System.Windows.Forms.Label(); this.axToolbarControl1 = new ESRI.ArcGIS.Controls.AxToolbarControl(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); this.SuspendLayout(); // // chkExtension // this.chkExtension.BackColor = System.Drawing.SystemColors.Control; this.chkExtension.Cursor = System.Windows.Forms.Cursors.Default; this.chkExtension.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkExtension.ForeColor = System.Drawing.SystemColors.ControlText; this.chkExtension.Location = new System.Drawing.Point(592, 8); this.chkExtension.Name = "chkExtension"; this.chkExtension.RightToLeft = System.Windows.Forms.RightToLeft.No; this.chkExtension.Size = new System.Drawing.Size(113, 25); this.chkExtension.TabIndex = 6; this.chkExtension.Text = "Enable Extension"; this.chkExtension.UseVisualStyleBackColor = false; this.chkExtension.CheckedChanged += new System.EventHandler(this.chkExtension_CheckedChanged); // // Label3 // this.Label3.BackColor = System.Drawing.SystemColors.Control; this.Label3.Cursor = System.Windows.Forms.Cursors.Default; this.Label3.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label3.ForeColor = System.Drawing.SystemColors.ControlText; this.Label3.Location = new System.Drawing.Point(592, 136); this.Label3.Name = "Label3"; this.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label3.Size = new System.Drawing.Size(137, 65); this.Label3.TabIndex = 9; this.Label3.Text = "Enable the extension and navigate around the data using the commands from the ext" + "ension."; // // Label1 // this.Label1.BackColor = System.Drawing.SystemColors.Control; this.Label1.Cursor = System.Windows.Forms.Cursors.Default; this.Label1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label1.ForeColor = System.Drawing.SystemColors.ControlText; this.Label1.Location = new System.Drawing.Point(592, 88); this.Label1.Name = "Label1"; this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label1.Size = new System.Drawing.Size(137, 41); this.Label1.TabIndex = 8; this.Label1.Text = "Navigate around the data using the commands on the ToolbarControl."; // // Label2 // this.Label2.BackColor = System.Drawing.SystemColors.Control; this.Label2.Cursor = System.Windows.Forms.Cursors.Default; this.Label2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label2.ForeColor = System.Drawing.SystemColors.ControlText; this.Label2.Location = new System.Drawing.Point(592, 40); this.Label2.Name = "Label2"; this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label2.Size = new System.Drawing.Size(137, 40); this.Label2.TabIndex = 7; this.Label2.Text = "Browse to a map document to load into the MapControl."; // // axToolbarControl1 // this.axToolbarControl1.Location = new System.Drawing.Point(8, 8); this.axToolbarControl1.Name = "axToolbarControl1"; this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState"))); this.axToolbarControl1.Size = new System.Drawing.Size(576, 28); this.axToolbarControl1.TabIndex = 10; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(8, 40); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(576, 432); this.axMapControl1.TabIndex = 11; // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(595, 204); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(32, 32); this.axLicenseControl1.TabIndex = 12; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(736, 478); this.Controls.Add(this.axLicenseControl1); this.Controls.Add(this.axMapControl1); this.Controls.Add(this.axToolbarControl1); this.Controls.Add(this.chkExtension); this.Controls.Add(this.Label3); this.Controls.Add(this.Label1); this.Controls.Add(this.Label2); this.Name = "Form1"; this.Text = "MenuTracking"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.chkExtension = new System.Windows.Forms.CheckBox(); this.Label3 = new System.Windows.Forms.Label(); this.Label1 = new System.Windows.Forms.Label(); this.Label2 = new System.Windows.Forms.Label(); this.axToolbarControl1 = new ESRI.ArcGIS.Controls.AxToolbarControl(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); this.SuspendLayout(); // // chkExtension // this.chkExtension.BackColor = System.Drawing.SystemColors.Control; this.chkExtension.Cursor = System.Windows.Forms.Cursors.Default; this.chkExtension.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkExtension.ForeColor = System.Drawing.SystemColors.ControlText; this.chkExtension.Location = new System.Drawing.Point(592, 8); this.chkExtension.Name = "chkExtension"; this.chkExtension.RightToLeft = System.Windows.Forms.RightToLeft.No; this.chkExtension.Size = new System.Drawing.Size(113, 25); this.chkExtension.TabIndex = 6; this.chkExtension.Text = "Enable Extension"; this.chkExtension.UseVisualStyleBackColor = false; this.chkExtension.CheckedChanged += new System.EventHandler(this.chkExtension_CheckedChanged); // // Label3 // this.Label3.BackColor = System.Drawing.SystemColors.Control; this.Label3.Cursor = System.Windows.Forms.Cursors.Default; this.Label3.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label3.ForeColor = System.Drawing.SystemColors.ControlText; this.Label3.Location = new System.Drawing.Point(592, 136); this.Label3.Name = "Label3"; this.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label3.Size = new System.Drawing.Size(137, 65); this.Label3.TabIndex = 9; this.Label3.Text = "Enable the extension and navigate around the data using the commands from the ext" + "ension."; // // Label1 // this.Label1.BackColor = System.Drawing.SystemColors.Control; this.Label1.Cursor = System.Windows.Forms.Cursors.Default; this.Label1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label1.ForeColor = System.Drawing.SystemColors.ControlText; this.Label1.Location = new System.Drawing.Point(592, 88); this.Label1.Name = "Label1"; this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label1.Size = new System.Drawing.Size(137, 41); this.Label1.TabIndex = 8; this.Label1.Text = "Navigate around the data using the commands on the ToolbarControl."; // // Label2 // this.Label2.BackColor = System.Drawing.SystemColors.Control; this.Label2.Cursor = System.Windows.Forms.Cursors.Default; this.Label2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label2.ForeColor = System.Drawing.SystemColors.ControlText; this.Label2.Location = new System.Drawing.Point(592, 40); this.Label2.Name = "Label2"; this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label2.Size = new System.Drawing.Size(137, 40); this.Label2.TabIndex = 7; this.Label2.Text = "Browse to a map document to load into the MapControl."; // // axToolbarControl1 // this.axToolbarControl1.Location = new System.Drawing.Point(8, 8); this.axToolbarControl1.Name = "axToolbarControl1"; this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState"))); this.axToolbarControl1.Size = new System.Drawing.Size(576, 28); this.axToolbarControl1.TabIndex = 10; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(8, 40); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(576, 432); this.axMapControl1.TabIndex = 11; // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(595, 204); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(32, 32); this.axLicenseControl1.TabIndex = 12; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(736, 478); this.Controls.Add(this.axLicenseControl1); this.Controls.Add(this.axMapControl1); this.Controls.Add(this.axToolbarControl1); this.Controls.Add(this.chkExtension); this.Controls.Add(this.Label3); this.Controls.Add(this.Label1); this.Controls.Add(this.Label2); this.Name = "Form1"; this.Text = "MenuTracking"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); this.ResumeLayout(false); }
public MapHelper(ESRI.ArcGIS.Controls.AxMapControl pMapCtrl) { mapControl = pMapCtrl; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCMapControl)); this.dockManager1 = new DevExpress.XtraBars.Docking.DockManager(this.components); this.hideContainerRight = new DevExpress.XtraBars.Docking.AutoHideContainer(); this.dockLegend = new DevExpress.XtraBars.Docking.DockPanel(); this.controlContainer1 = new DevExpress.XtraBars.Docking.ControlContainer(); this.TocControl = new ESRI.ArcGIS.Controls.AxTOCControl(); this.dockAttribute = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel2_Container = new DevExpress.XtraBars.Docking.ControlContainer(); this.ucAttribute = new Hy.Check.UI.UC.UCAttribute(); this.hideContainerLeft = new DevExpress.XtraBars.Docking.AutoHideContainer(); this.dockTree = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer(); this.TabCtrl = new DevExpress.XtraTab.XtraTabControl(); this.TabPageRules = new DevExpress.XtraTab.XtraTabPage(); this.ucRulesTree = new Hy.Check.UI.UC.UCRulesTree(); this.TabPageCheckResults = new DevExpress.XtraTab.XtraTabPage(); this.ucResultsTree = new Hy.Check.UI.UC.UCRulesTree(); this.dockResults = new DevExpress.XtraBars.Docking.DockPanel(); this.dockPanel3_Container = new DevExpress.XtraBars.Docking.ControlContainer(); this.ucResult = new Hy.Check.UI.UC.UCResult(); this.UcMap = new ESRI.ArcGIS.Controls.AxMapControl(); this.Toolbar = new ESRI.ArcGIS.Controls.AxToolbarControl(); this.popMenuTOCMap = new DevExpress.XtraBars.PopupMenu(this.components); this.barBtnOpenAllLayer = new DevExpress.XtraBars.BarButtonItem(); this.barBtnCloseAllLayer = new DevExpress.XtraBars.BarButtonItem(); this.barManager = new DevExpress.XtraBars.BarManager(this.components); this.barDockControlTop = new DevExpress.XtraBars.BarDockControl(); this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); this.barDockControlRight = new DevExpress.XtraBars.BarDockControl(); this.barBtnZoomLayer = new DevExpress.XtraBars.BarButtonItem(); this.barBtnSetLayerTransparency = new DevExpress.XtraBars.BarButtonItem(); this.popMenuTOCLayer = new DevExpress.XtraBars.PopupMenu(this.components); ((System.ComponentModel.ISupportInitialize)(this.dockManager1)).BeginInit(); this.hideContainerRight.SuspendLayout(); this.dockLegend.SuspendLayout(); this.controlContainer1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.TocControl)).BeginInit(); this.dockAttribute.SuspendLayout(); this.dockPanel2_Container.SuspendLayout(); this.hideContainerLeft.SuspendLayout(); this.dockTree.SuspendLayout(); this.dockPanel1_Container.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.TabCtrl)).BeginInit(); this.TabCtrl.SuspendLayout(); this.TabPageRules.SuspendLayout(); this.TabPageCheckResults.SuspendLayout(); this.dockResults.SuspendLayout(); this.dockPanel3_Container.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.UcMap)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Toolbar)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popMenuTOCMap)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.barManager)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popMenuTOCLayer)).BeginInit(); this.SuspendLayout(); // // dockManager1 // this.dockManager1.AutoHideContainers.AddRange(new DevExpress.XtraBars.Docking.AutoHideContainer[] { this.hideContainerRight, this.hideContainerLeft}); this.dockManager1.DockMode = DevExpress.XtraBars.Docking.Helpers.DockMode.VS2005; this.dockManager1.Form = this; this.dockManager1.HiddenPanels.AddRange(new DevExpress.XtraBars.Docking.DockPanel[] { this.dockResults}); this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl"}); // // hideContainerRight // this.hideContainerRight.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(245)))), ((int)(((byte)(241))))); this.hideContainerRight.Controls.Add(this.dockLegend); this.hideContainerRight.Controls.Add(this.dockAttribute); this.hideContainerRight.Dock = System.Windows.Forms.DockStyle.Right; this.hideContainerRight.Location = new System.Drawing.Point(1217, 0); this.hideContainerRight.Name = "hideContainerRight"; this.hideContainerRight.Size = new System.Drawing.Size(20, 757); // // dockLegend // this.dockLegend.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.dockLegend.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.dockLegend.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.dockLegend.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.dockLegend.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.dockLegend.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.dockLegend.Controls.Add(this.controlContainer1); this.dockLegend.Dock = DevExpress.XtraBars.Docking.DockingStyle.Right; this.dockLegend.DockVertical = DevExpress.Utils.DefaultBoolean.Default; this.dockLegend.ID = new System.Guid("280b405e-d63e-4014-8cc1-938005165701"); this.dockLegend.Location = new System.Drawing.Point(0, 0); this.dockLegend.Name = "dockLegend"; this.dockLegend.Options.ShowCloseButton = false; this.dockLegend.OriginalSize = new System.Drawing.Size(0, 0); this.dockLegend.SavedDock = DevExpress.XtraBars.Docking.DockingStyle.Right; this.dockLegend.SavedIndex = 0; this.dockLegend.Size = new System.Drawing.Size(233, 757); this.dockLegend.TabsPosition = DevExpress.XtraBars.Docking.TabsPosition.Bottom; this.dockLegend.Text = "ͼ���б�"; this.dockLegend.Visibility = DevExpress.XtraBars.Docking.DockVisibility.AutoHide; // // controlContainer1 // this.controlContainer1.Controls.Add(this.TocControl); this.controlContainer1.Location = new System.Drawing.Point(3, 29); this.controlContainer1.Name = "controlContainer1"; this.controlContainer1.Size = new System.Drawing.Size(226, 724); this.controlContainer1.TabIndex = 0; // // TocControl // this.TocControl.Dock = System.Windows.Forms.DockStyle.Fill; this.TocControl.Location = new System.Drawing.Point(0, 0); this.TocControl.Name = "TocControl"; this.TocControl.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("TocControl.OcxState"))); this.TocControl.Size = new System.Drawing.Size(194, 621); this.TocControl.TabIndex = 0; this.TocControl.OnMouseDown += new ESRI.ArcGIS.Controls.ITOCControlEvents_Ax_OnMouseDownEventHandler(this.TocControl_OnMouseDown); this.TocControl.OnBeginLabelEdit += new ESRI.ArcGIS.Controls.ITOCControlEvents_Ax_OnBeginLabelEditEventHandler(this.TocControl_OnBeginLabelEdit); // // dockAttribute // this.dockAttribute.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.dockAttribute.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.dockAttribute.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.dockAttribute.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.dockAttribute.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.dockAttribute.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.dockAttribute.Controls.Add(this.dockPanel2_Container); this.dockAttribute.Dock = DevExpress.XtraBars.Docking.DockingStyle.Right; this.dockAttribute.DockVertical = DevExpress.Utils.DefaultBoolean.Default; this.dockAttribute.ID = new System.Guid("6264ad22-6d72-408c-b7fb-c5cee4aae6df"); this.dockAttribute.Location = new System.Drawing.Point(0, 0); this.dockAttribute.Name = "dockAttribute"; this.dockAttribute.Options.ShowCloseButton = false; this.dockAttribute.OriginalSize = new System.Drawing.Size(0, 0); this.dockAttribute.SavedDock = DevExpress.XtraBars.Docking.DockingStyle.Right; this.dockAttribute.SavedIndex = 1; this.dockAttribute.Size = new System.Drawing.Size(233, 757); this.dockAttribute.TabsPosition = DevExpress.XtraBars.Docking.TabsPosition.Bottom; this.dockAttribute.Text = "����"; this.dockAttribute.Visibility = DevExpress.XtraBars.Docking.DockVisibility.AutoHide; // // dockPanel2_Container // this.dockPanel2_Container.Controls.Add(this.ucAttribute); this.dockPanel2_Container.Location = new System.Drawing.Point(3, 29); this.dockPanel2_Container.Name = "dockPanel2_Container"; this.dockPanel2_Container.Size = new System.Drawing.Size(226, 724); this.dockPanel2_Container.TabIndex = 0; // // ucAttribute // this.ucAttribute.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.ucAttribute.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.ucAttribute.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.ucAttribute.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.ucAttribute.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.ucAttribute.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.ucAttribute.Dock = System.Windows.Forms.DockStyle.Fill; this.ucAttribute.Location = new System.Drawing.Point(0, 0); this.ucAttribute.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin; this.ucAttribute.Name = "ucAttribute"; this.ucAttribute.Size = new System.Drawing.Size(226, 724); this.ucAttribute.TabIndex = 0; // // hideContainerLeft // this.hideContainerLeft.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(245)))), ((int)(((byte)(241))))); this.hideContainerLeft.Controls.Add(this.dockTree); this.hideContainerLeft.Dock = System.Windows.Forms.DockStyle.Left; this.hideContainerLeft.Location = new System.Drawing.Point(0, 0); this.hideContainerLeft.Name = "hideContainerLeft"; this.hideContainerLeft.Size = new System.Drawing.Size(20, 757); // // dockTree // this.dockTree.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.dockTree.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.dockTree.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.dockTree.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.dockTree.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.dockTree.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.dockTree.Controls.Add(this.dockPanel1_Container); this.dockTree.Dock = DevExpress.XtraBars.Docking.DockingStyle.Left; this.dockTree.DockVertical = DevExpress.Utils.DefaultBoolean.Default; this.dockTree.ID = new System.Guid("b316a8e4-7a20-482d-bf9a-1d6cf7e05864"); this.dockTree.Location = new System.Drawing.Point(0, 0); this.dockTree.Name = "dockTree"; this.dockTree.Options.ShowCloseButton = false; this.dockTree.OriginalSize = new System.Drawing.Size(200, 200); this.dockTree.SavedDock = DevExpress.XtraBars.Docking.DockingStyle.Left; this.dockTree.SavedIndex = 1; this.dockTree.Size = new System.Drawing.Size(200, 757); this.dockTree.TabsPosition = DevExpress.XtraBars.Docking.TabsPosition.Bottom; this.dockTree.Visibility = DevExpress.XtraBars.Docking.DockVisibility.AutoHide; // // dockPanel1_Container // this.dockPanel1_Container.Controls.Add(this.TabCtrl); this.dockPanel1_Container.Location = new System.Drawing.Point(3, 25); this.dockPanel1_Container.Name = "dockPanel1_Container"; this.dockPanel1_Container.Size = new System.Drawing.Size(194, 729); this.dockPanel1_Container.TabIndex = 0; // // TabCtrl // this.TabCtrl.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabCtrl.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabCtrl.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabCtrl.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabCtrl.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabCtrl.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabCtrl.AppearancePage.Header.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabCtrl.AppearancePage.Header.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabCtrl.AppearancePage.Header.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabCtrl.AppearancePage.Header.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabCtrl.AppearancePage.Header.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabCtrl.AppearancePage.Header.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabCtrl.AppearancePage.HeaderActive.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabCtrl.AppearancePage.HeaderActive.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabCtrl.AppearancePage.HeaderActive.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabCtrl.AppearancePage.HeaderActive.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabCtrl.AppearancePage.HeaderActive.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabCtrl.AppearancePage.HeaderActive.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabCtrl.AppearancePage.HeaderDisabled.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabCtrl.AppearancePage.HeaderDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabCtrl.AppearancePage.HeaderDisabled.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabCtrl.AppearancePage.HeaderDisabled.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabCtrl.AppearancePage.HeaderDisabled.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabCtrl.AppearancePage.HeaderDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabCtrl.AppearancePage.HeaderHotTracked.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabCtrl.AppearancePage.HeaderHotTracked.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabCtrl.AppearancePage.HeaderHotTracked.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabCtrl.AppearancePage.HeaderHotTracked.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabCtrl.AppearancePage.HeaderHotTracked.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabCtrl.AppearancePage.HeaderHotTracked.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabCtrl.AppearancePage.PageClient.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabCtrl.AppearancePage.PageClient.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabCtrl.AppearancePage.PageClient.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabCtrl.AppearancePage.PageClient.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabCtrl.AppearancePage.PageClient.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabCtrl.AppearancePage.PageClient.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabCtrl.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.TabCtrl.BorderStylePage = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.TabCtrl.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.Default; this.TabCtrl.Dock = System.Windows.Forms.DockStyle.Fill; this.TabCtrl.HeaderAutoFill = DevExpress.Utils.DefaultBoolean.Default; this.TabCtrl.HeaderButtons = DevExpress.XtraTab.TabButtons.Default; this.TabCtrl.HeaderButtonsShowMode = DevExpress.XtraTab.TabButtonShowMode.Default; this.TabCtrl.HeaderLocation = DevExpress.XtraTab.TabHeaderLocation.Bottom; this.TabCtrl.HeaderOrientation = DevExpress.XtraTab.TabOrientation.Horizontal; this.TabCtrl.Location = new System.Drawing.Point(0, 0); this.TabCtrl.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin; this.TabCtrl.MultiLine = DevExpress.Utils.DefaultBoolean.Default; this.TabCtrl.Name = "TabCtrl"; this.TabCtrl.PageImagePosition = DevExpress.XtraTab.TabPageImagePosition.Near; this.TabCtrl.SelectedTabPage = this.TabPageRules; this.TabCtrl.ShowHeaderFocus = DevExpress.Utils.DefaultBoolean.Default; this.TabCtrl.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False; this.TabCtrl.ShowToolTips = DevExpress.Utils.DefaultBoolean.Default; this.TabCtrl.Size = new System.Drawing.Size(194, 729); this.TabCtrl.TabIndex = 0; this.TabCtrl.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.TabPageRules, this.TabPageCheckResults}); // // TabPageRules // this.TabPageRules.Appearance.Header.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageRules.Appearance.Header.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageRules.Appearance.Header.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageRules.Appearance.Header.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageRules.Appearance.Header.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageRules.Appearance.Header.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageRules.Appearance.HeaderActive.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageRules.Appearance.HeaderActive.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageRules.Appearance.HeaderActive.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageRules.Appearance.HeaderActive.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageRules.Appearance.HeaderActive.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageRules.Appearance.HeaderActive.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageRules.Appearance.HeaderDisabled.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageRules.Appearance.HeaderDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageRules.Appearance.HeaderDisabled.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageRules.Appearance.HeaderDisabled.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageRules.Appearance.HeaderDisabled.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageRules.Appearance.HeaderDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageRules.Appearance.HeaderHotTracked.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageRules.Appearance.HeaderHotTracked.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageRules.Appearance.HeaderHotTracked.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageRules.Appearance.HeaderHotTracked.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageRules.Appearance.HeaderHotTracked.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageRules.Appearance.HeaderHotTracked.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageRules.Appearance.PageClient.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageRules.Appearance.PageClient.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageRules.Appearance.PageClient.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageRules.Appearance.PageClient.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageRules.Appearance.PageClient.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageRules.Appearance.PageClient.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageRules.BorderStyle = System.Windows.Forms.BorderStyle.None; this.TabPageRules.Controls.Add(this.ucRulesTree); this.TabPageRules.Name = "TabPageRules"; this.TabPageRules.ShowCloseButton = DevExpress.Utils.DefaultBoolean.Default; this.TabPageRules.Size = new System.Drawing.Size(187, 722); this.TabPageRules.Text = "�����б�"; this.TabPageRules.TooltipIconType = DevExpress.Utils.ToolTipIconType.None; // // ucRulesTree // this.ucRulesTree.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.ucRulesTree.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.ucRulesTree.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.ucRulesTree.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.ucRulesTree.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.ucRulesTree.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.ucRulesTree.CurrentSchemaId = null; this.ucRulesTree.CurrentTaskName = null; this.ucRulesTree.CurrentTemplateRules = null; this.ucRulesTree.Dock = System.Windows.Forms.DockStyle.Fill; this.ucRulesTree.Location = new System.Drawing.Point(0, 0); this.ucRulesTree.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin; this.ucRulesTree.Name = "ucRulesTree"; this.ucRulesTree.RulesSelection = null; this.ucRulesTree.RuleType = Hy.Check.UI.UC.RuleShowType.DefualtType; this.ucRulesTree.ShowRulesCount = true; this.ucRulesTree.ShowType = Hy.Check.UI.UC.RuleTreeShowType.ViewRules; this.ucRulesTree.Size = new System.Drawing.Size(187, 722); this.ucRulesTree.TabIndex = 0; // // TabPageCheckResults // this.TabPageCheckResults.Appearance.Header.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageCheckResults.Appearance.Header.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageCheckResults.Appearance.Header.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageCheckResults.Appearance.Header.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageCheckResults.Appearance.Header.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageCheckResults.Appearance.Header.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageCheckResults.Appearance.HeaderActive.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageCheckResults.Appearance.HeaderActive.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageCheckResults.Appearance.HeaderActive.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageCheckResults.Appearance.HeaderActive.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageCheckResults.Appearance.HeaderActive.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageCheckResults.Appearance.HeaderActive.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageCheckResults.Appearance.HeaderDisabled.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageCheckResults.Appearance.HeaderDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageCheckResults.Appearance.HeaderDisabled.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageCheckResults.Appearance.HeaderDisabled.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageCheckResults.Appearance.HeaderDisabled.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageCheckResults.Appearance.HeaderDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageCheckResults.Appearance.HeaderHotTracked.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageCheckResults.Appearance.HeaderHotTracked.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageCheckResults.Appearance.HeaderHotTracked.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageCheckResults.Appearance.HeaderHotTracked.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageCheckResults.Appearance.HeaderHotTracked.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageCheckResults.Appearance.HeaderHotTracked.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageCheckResults.Appearance.PageClient.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.TabPageCheckResults.Appearance.PageClient.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.TabPageCheckResults.Appearance.PageClient.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.TabPageCheckResults.Appearance.PageClient.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.TabPageCheckResults.Appearance.PageClient.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.TabPageCheckResults.Appearance.PageClient.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.TabPageCheckResults.BorderStyle = System.Windows.Forms.BorderStyle.None; this.TabPageCheckResults.Controls.Add(this.ucResultsTree); this.TabPageCheckResults.Name = "TabPageCheckResults"; this.TabPageCheckResults.ShowCloseButton = DevExpress.Utils.DefaultBoolean.Default; this.TabPageCheckResults.Size = new System.Drawing.Size(187, 722); this.TabPageCheckResults.Text = "�����"; this.TabPageCheckResults.TooltipIconType = DevExpress.Utils.ToolTipIconType.None; // // ucResultsTree // this.ucResultsTree.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.ucResultsTree.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.ucResultsTree.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.ucResultsTree.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.ucResultsTree.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.ucResultsTree.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.ucResultsTree.CurrentSchemaId = null; this.ucResultsTree.CurrentTaskName = null; this.ucResultsTree.CurrentTemplateRules = null; this.ucResultsTree.Dock = System.Windows.Forms.DockStyle.Fill; this.ucResultsTree.Location = new System.Drawing.Point(0, 0); this.ucResultsTree.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin; this.ucResultsTree.Name = "ucResultsTree"; this.ucResultsTree.RulesSelection = null; this.ucResultsTree.RuleType = Hy.Check.UI.UC.RuleShowType.DefualtType; this.ucResultsTree.ShowRulesCount = true; this.ucResultsTree.ShowType = Hy.Check.UI.UC.RuleTreeShowType.ViewRuleErrors; this.ucResultsTree.Size = new System.Drawing.Size(187, 722); this.ucResultsTree.TabIndex = 0; // // dockResults // this.dockResults.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.dockResults.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.dockResults.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.dockResults.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.dockResults.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.dockResults.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.dockResults.Controls.Add(this.dockPanel3_Container); this.dockResults.Dock = DevExpress.XtraBars.Docking.DockingStyle.Bottom; this.dockResults.DockVertical = DevExpress.Utils.DefaultBoolean.Default; this.dockResults.ID = new System.Guid("56e0b7b8-1c85-498a-996b-23fdbb986e26"); this.dockResults.Location = new System.Drawing.Point(20, 530); this.dockResults.Name = "dockResults"; this.dockResults.Options.ShowCloseButton = false; this.dockResults.OriginalSize = new System.Drawing.Size(0, 0); this.dockResults.SavedDock = DevExpress.XtraBars.Docking.DockingStyle.Bottom; this.dockResults.SavedIndex = 0; this.dockResults.Size = new System.Drawing.Size(1020, 119); this.dockResults.TabsPosition = DevExpress.XtraBars.Docking.TabsPosition.Bottom; this.dockResults.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; // // dockPanel3_Container // this.dockPanel3_Container.Controls.Add(this.ucResult); this.dockPanel3_Container.Location = new System.Drawing.Point(3, 24); this.dockPanel3_Container.Name = "dockPanel3_Container"; this.dockPanel3_Container.Size = new System.Drawing.Size(1014, 92); this.dockPanel3_Container.TabIndex = 0; // // ucResult // this.ucResult.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.ucResult.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.ucResult.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.ucResult.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.ucResult.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.ucResult.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.ucResult.Dock = System.Windows.Forms.DockStyle.Fill; this.ucResult.Location = new System.Drawing.Point(0, 0); this.ucResult.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin; this.ucResult.Name = "ucResult"; this.ucResult.PageCount = 0; this.ucResult.Size = new System.Drawing.Size(1014, 92); this.ucResult.TabIndex = 0; // // UcMap // this.UcMap.Dock = System.Windows.Forms.DockStyle.Fill; this.UcMap.Location = new System.Drawing.Point(20, 0); this.UcMap.Name = "UcMap"; this.UcMap.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("UcMap.OcxState"))); this.UcMap.Size = new System.Drawing.Size(1197, 757); this.UcMap.TabIndex = 3; this.UcMap.OnMouseDown += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseDownEventHandler(this.UcMap_OnMouseDown); this.UcMap.OnMouseMove += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseMoveEventHandler(this.UcMap_OnMouseMove); this.UcMap.OnExtentUpdated += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnExtentUpdatedEventHandler(this.UcMap_OnExtentUpdated); this.UcMap.OnKeyDown += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnKeyDownEventHandler(this.UcMap_OnKeyDown); this.UcMap.OnMapReplaced += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMapReplacedEventHandler(this.UcMap_OnMapReplaced); // // Toolbar // this.Toolbar.Location = new System.Drawing.Point(559, 46); this.Toolbar.Name = "Toolbar"; this.Toolbar.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("Toolbar.OcxState"))); this.Toolbar.Size = new System.Drawing.Size(265, 28); this.Toolbar.TabIndex = 5; this.Toolbar.Visible = false; // // popMenuTOCMap // this.popMenuTOCMap.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.barBtnOpenAllLayer), new DevExpress.XtraBars.LinkPersistInfo(this.barBtnCloseAllLayer)}); this.popMenuTOCMap.Manager = this.barManager; this.popMenuTOCMap.MenuAppearance.Menu.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCMap.MenuAppearance.Menu.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCMap.MenuAppearance.Menu.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCMap.MenuAppearance.Menu.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCMap.MenuAppearance.Menu.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCMap.MenuAppearance.Menu.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCMap.MenuAppearance.MenuBar.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCMap.MenuAppearance.MenuBar.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCMap.MenuAppearance.MenuBar.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCMap.MenuAppearance.MenuBar.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCMap.MenuAppearance.MenuBar.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCMap.MenuAppearance.MenuBar.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCMap.MenuAppearance.MenuCaption.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCMap.MenuAppearance.MenuCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCMap.MenuAppearance.MenuCaption.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCMap.MenuAppearance.MenuCaption.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCMap.MenuAppearance.MenuCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCMap.MenuAppearance.MenuCaption.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCMap.MenuAppearance.SideStrip.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCMap.MenuAppearance.SideStrip.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCMap.MenuAppearance.SideStrip.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCMap.MenuAppearance.SideStrip.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCMap.MenuAppearance.SideStrip.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCMap.MenuAppearance.SideStrip.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCMap.MenuAppearance.SideStripNonRecent.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCMap.MenuAppearance.SideStripNonRecent.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCMap.MenuAppearance.SideStripNonRecent.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCMap.MenuAppearance.SideStripNonRecent.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCMap.MenuAppearance.SideStripNonRecent.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCMap.MenuAppearance.SideStripNonRecent.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCMap.MenuDrawMode = DevExpress.XtraBars.MenuDrawMode.Default; this.popMenuTOCMap.Name = "popMenuTOCMap"; // // barBtnOpenAllLayer // this.barBtnOpenAllLayer.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Default; this.barBtnOpenAllLayer.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barBtnOpenAllLayer.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barBtnOpenAllLayer.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Default; this.barBtnOpenAllLayer.Caption = "������ͼ��"; this.barBtnOpenAllLayer.Id = 0; this.barBtnOpenAllLayer.ItemClickFireMode = DevExpress.XtraBars.BarItemEventFireMode.Default; this.barBtnOpenAllLayer.MergeType = DevExpress.XtraBars.BarMenuMerge.Add; this.barBtnOpenAllLayer.Name = "barBtnOpenAllLayer"; this.barBtnOpenAllLayer.Visibility = DevExpress.XtraBars.BarItemVisibility.Always; this.barBtnOpenAllLayer.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barBtnOpenAllLayer_ItemClick); // // barBtnCloseAllLayer // this.barBtnCloseAllLayer.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Default; this.barBtnCloseAllLayer.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barBtnCloseAllLayer.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barBtnCloseAllLayer.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Default; this.barBtnCloseAllLayer.Caption = "�ر�����ͼ��"; this.barBtnCloseAllLayer.Id = 1; this.barBtnCloseAllLayer.ItemClickFireMode = DevExpress.XtraBars.BarItemEventFireMode.Default; this.barBtnCloseAllLayer.MergeType = DevExpress.XtraBars.BarMenuMerge.Add; this.barBtnCloseAllLayer.Name = "barBtnCloseAllLayer"; this.barBtnCloseAllLayer.Visibility = DevExpress.XtraBars.BarItemVisibility.Always; this.barBtnCloseAllLayer.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barBtnCloseAllLayer_ItemClick); // // barManager // this.barManager.DockControls.Add(this.barDockControlTop); this.barManager.DockControls.Add(this.barDockControlBottom); this.barManager.DockControls.Add(this.barDockControlLeft); this.barManager.DockControls.Add(this.barDockControlRight); this.barManager.DockManager = this.dockManager1; this.barManager.Form = this; this.barManager.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.barBtnOpenAllLayer, this.barBtnCloseAllLayer, this.barBtnZoomLayer, this.barBtnSetLayerTransparency}); this.barManager.MaxItemId = 4; this.barManager.MdiMenuMergeStyle = DevExpress.XtraBars.BarMdiMenuMergeStyle.Always; // // barDockControlTop // this.barDockControlTop.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.barDockControlTop.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.barDockControlTop.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.barDockControlTop.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.barDockControlTop.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.barDockControlTop.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top; this.barDockControlTop.Location = new System.Drawing.Point(0, 0); this.barDockControlTop.Size = new System.Drawing.Size(1237, 0); // // barDockControlBottom // this.barDockControlBottom.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.barDockControlBottom.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.barDockControlBottom.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.barDockControlBottom.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.barDockControlBottom.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.barDockControlBottom.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.barDockControlBottom.Location = new System.Drawing.Point(0, 757); this.barDockControlBottom.Size = new System.Drawing.Size(1237, 0); // // barDockControlLeft // this.barDockControlLeft.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.barDockControlLeft.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.barDockControlLeft.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.barDockControlLeft.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.barDockControlLeft.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.barDockControlLeft.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left; this.barDockControlLeft.Location = new System.Drawing.Point(0, 0); this.barDockControlLeft.Size = new System.Drawing.Size(0, 757); // // barDockControlRight // this.barDockControlRight.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.barDockControlRight.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.barDockControlRight.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.barDockControlRight.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.barDockControlRight.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.barDockControlRight.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right; this.barDockControlRight.Location = new System.Drawing.Point(1237, 0); this.barDockControlRight.Size = new System.Drawing.Size(0, 757); // // barBtnZoomLayer // this.barBtnZoomLayer.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Default; this.barBtnZoomLayer.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barBtnZoomLayer.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barBtnZoomLayer.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Default; this.barBtnZoomLayer.Caption = "���ŵ�ͼ��"; this.barBtnZoomLayer.Id = 2; this.barBtnZoomLayer.ItemClickFireMode = DevExpress.XtraBars.BarItemEventFireMode.Default; this.barBtnZoomLayer.MergeType = DevExpress.XtraBars.BarMenuMerge.Add; this.barBtnZoomLayer.Name = "barBtnZoomLayer"; this.barBtnZoomLayer.Visibility = DevExpress.XtraBars.BarItemVisibility.Always; this.barBtnZoomLayer.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barBtnZoomLayer_ItemClick); // // barBtnSetLayerTransparency // this.barBtnSetLayerTransparency.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Default; this.barBtnSetLayerTransparency.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barBtnSetLayerTransparency.AppearanceDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.barBtnSetLayerTransparency.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Default; this.barBtnSetLayerTransparency.Caption = "����ͼ������"; this.barBtnSetLayerTransparency.Id = 3; this.barBtnSetLayerTransparency.ItemClickFireMode = DevExpress.XtraBars.BarItemEventFireMode.Default; this.barBtnSetLayerTransparency.MergeType = DevExpress.XtraBars.BarMenuMerge.Add; this.barBtnSetLayerTransparency.Name = "barBtnSetLayerTransparency"; this.barBtnSetLayerTransparency.Visibility = DevExpress.XtraBars.BarItemVisibility.Always; this.barBtnSetLayerTransparency.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.barBtnSetLayerTransparency_ItemClick); // // popMenuTOCLayer // this.popMenuTOCLayer.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.barBtnZoomLayer), new DevExpress.XtraBars.LinkPersistInfo(this.barBtnSetLayerTransparency)}); this.popMenuTOCLayer.Manager = this.barManager; this.popMenuTOCLayer.MenuAppearance.Menu.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCLayer.MenuAppearance.Menu.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCLayer.MenuAppearance.Menu.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCLayer.MenuAppearance.Menu.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCLayer.MenuAppearance.Menu.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCLayer.MenuAppearance.Menu.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCLayer.MenuAppearance.MenuBar.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCLayer.MenuAppearance.MenuBar.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCLayer.MenuAppearance.MenuBar.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCLayer.MenuAppearance.MenuBar.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCLayer.MenuAppearance.MenuBar.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCLayer.MenuAppearance.MenuBar.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCLayer.MenuAppearance.MenuCaption.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCLayer.MenuAppearance.MenuCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCLayer.MenuAppearance.MenuCaption.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCLayer.MenuAppearance.MenuCaption.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCLayer.MenuAppearance.MenuCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCLayer.MenuAppearance.MenuCaption.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCLayer.MenuAppearance.SideStrip.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCLayer.MenuAppearance.SideStrip.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCLayer.MenuAppearance.SideStrip.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCLayer.MenuAppearance.SideStrip.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCLayer.MenuAppearance.SideStrip.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCLayer.MenuAppearance.SideStrip.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCLayer.MenuAppearance.SideStripNonRecent.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.popMenuTOCLayer.MenuAppearance.SideStripNonRecent.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.popMenuTOCLayer.MenuAppearance.SideStripNonRecent.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.popMenuTOCLayer.MenuAppearance.SideStripNonRecent.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.popMenuTOCLayer.MenuAppearance.SideStripNonRecent.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.popMenuTOCLayer.MenuAppearance.SideStripNonRecent.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.popMenuTOCLayer.MenuDrawMode = DevExpress.XtraBars.MenuDrawMode.Default; this.popMenuTOCLayer.Name = "popMenuTOCLayer"; // // UCMapControl // this.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; this.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default; this.Appearance.TextOptions.HotkeyPrefix = DevExpress.Utils.HKeyPrefix.Default; this.Appearance.TextOptions.Trimming = DevExpress.Utils.Trimming.Default; this.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Default; this.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.Toolbar); this.Controls.Add(this.UcMap); this.Controls.Add(this.hideContainerLeft); this.Controls.Add(this.hideContainerRight); this.Controls.Add(this.barDockControlLeft); this.Controls.Add(this.barDockControlRight); this.Controls.Add(this.barDockControlBottom); this.Controls.Add(this.barDockControlTop); this.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin; this.Name = "UCMapControl"; this.Size = new System.Drawing.Size(1237, 757); ((System.ComponentModel.ISupportInitialize)(this.dockManager1)).EndInit(); this.hideContainerRight.ResumeLayout(false); this.dockLegend.ResumeLayout(false); this.controlContainer1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.TocControl)).EndInit(); this.dockAttribute.ResumeLayout(false); this.dockPanel2_Container.ResumeLayout(false); this.hideContainerLeft.ResumeLayout(false); this.dockTree.ResumeLayout(false); this.dockPanel1_Container.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.TabCtrl)).EndInit(); this.TabCtrl.ResumeLayout(false); this.TabPageRules.ResumeLayout(false); this.TabPageCheckResults.ResumeLayout(false); this.dockResults.ResumeLayout(false); this.dockPanel3_Container.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.UcMap)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Toolbar)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popMenuTOCMap)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.barManager)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popMenuTOCLayer)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// 构建监测任务区 /// </summary> /// <param name="pMapCtr"></param> public static void BuildTaskArea(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, int id) { if (DataGrid == null) { MessageBox.Show("您可能尚对灾区进行网格剖分,请先进行网格化剖分后再构建任务区!"); return; } //throw new Exception("您可能尚对灾区进行网格剖分,请先进行网格化剖分后再构建任务区!"); if (DataGrid.Count == 0) { MessageBox.Show("没有监测要素的单元格!"); return; } //throw new Exception("没有监测要素的单元格!"); TaskAreas = new List <IPolygon>(); IPolygon area; Geometry.Grid _grid; try { foreach (Geometry.Grid grid in DataGrid) { _grid = grid; if (grid.isMerged) { continue; //如果已经合并过,则跳过 } if (!ExistsGridInDataGrid(ref _grid)) { continue; //如果不有数据单元格中,则跳过 } area = grid.BuildPolygon(); grid.isMerged = true; //SetGridMerged(grid); MergeNN(grid, ref area); TaskAreas.Add(area); } if (TaskAreas.Count == 0) { throw (new Exception("没有成功生成任务区域!")); } //存储任务区信息 int i = 1; foreach (IPolygon polygon in TaskAreas) { Core.Model.TaskAreas model = new Core.Model.TaskAreas(); Core.DAL.TaskAreas dal = new Core.DAL.TaskAreas(); model.Name = "任务区" + i; model.PID = id; model.PolygonString = CoScheduling.Core.Generic.Convertor.ToString(polygon); dal.Add(model); i++; } //显示任务区 LoadTaskAreas(pMapCtr, id); //生成交点 // getIntersect(TaskAreas, map); } catch (Exception ex) { MessageBox.Show("错误" + ex.Message); } finally { TaskAreas = null; } }
/// <summary> /// 批量加载任务区 根据任务区所属的灾情id加载 /// </summary> /// <param name="pMapCtr"></param> /// <param name="id"></param> public static void LoadTaskAreas(ESRI.ArcGIS.Controls.AxMapControl pMapCtr, int id) { //读取并图上显示任务区任务区信息 Core.Map.MapHelper map = new Core.Map.MapHelper(pMapCtr); map.ClearAllElement(); //灾区 Core.DAL.TaskAreas t_dal = new Core.DAL.TaskAreas(); list_model = new List <Core.Model.TaskAreas>(); //交点 Core.DAL.DisaCrossPoint dal = new Core.DAL.DisaCrossPoint(); List <Core.Model.DisaCrossPoint> models = new List <Core.Model.DisaCrossPoint>(); //集结点 Core.DAL.DisaGatherPoint g_dal = new Core.DAL.DisaGatherPoint(); List <Core.Model.DisaGatherPoint> g_models = new List <Core.Model.DisaGatherPoint>(); IEnvelope envelope = null; try { list_model = t_dal.GetList(id); if (list_model.Count == 0) { MessageBox.Show("该灾区尚未生成任务区!"); return; } //加载 foreach (Core.Model.TaskAreas t_model in list_model) { LoadTaskArea(map, t_model); IPolygon pPolygon = Core.Generic.Convertor.ToPolygon(t_model.PolygonString); //获取多个Polygon的Envelope外包矩形 if (envelope == null) { envelope = pPolygon.Envelope; } else { envelope.Union(pPolygon.Envelope); } //models = dal.GetList(t_model.ID, id); //foreach (Core.Model.DisaCrossPoint model in models) //{ // LoadCrossPoint(map, model); //} //g_models = g_dal.GetList(t_model.ID, id); //foreach (Core.Model.DisaGatherPoint model in g_models) //{ // LoadGatherPoint(map, model); //} } if (!envelope.IsEmpty) { envelope.Expand(1.1, 1.1, true); } pMapCtr.Extent = envelope; pMapCtr.ActiveView.Refresh(); } catch (Exception ex) { MessageBox.Show("错误:" + ex); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.chkShowTips = new System.Windows.Forms.CheckBox(); this.cmdLoadData = new System.Windows.Forms.Button(); this.cboDataField = new System.Windows.Forms.ComboBox(); this.cboDataLayer = new System.Windows.Forms.ComboBox(); this.Label2 = new System.Windows.Forms.Label(); this.Label1 = new System.Windows.Forms.Label(); this.cmdFullExtent = new System.Windows.Forms.Button(); this.Label3 = new System.Windows.Forms.Label(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); this.chkTransparent = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); this.SuspendLayout(); // // chkShowTips // this.chkShowTips.BackColor = System.Drawing.SystemColors.Control; this.chkShowTips.Cursor = System.Windows.Forms.Cursors.Default; this.chkShowTips.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.chkShowTips.ForeColor = System.Drawing.SystemColors.ControlText; this.chkShowTips.Location = new System.Drawing.Point(8, 40); this.chkShowTips.Name = "chkShowTips"; this.chkShowTips.RightToLeft = System.Windows.Forms.RightToLeft.No; this.chkShowTips.Size = new System.Drawing.Size(129, 25); this.chkShowTips.TabIndex = 10; this.chkShowTips.Text = "Show Map Tips"; this.chkShowTips.UseVisualStyleBackColor = false; this.chkShowTips.CheckedChanged += new System.EventHandler(this.chkShowTips_CheckedChanged); this.chkShowTips.CheckStateChanged += new System.EventHandler(this.chkShowTips_CheckStateChanged); // // cmdLoadData // this.cmdLoadData.BackColor = System.Drawing.SystemColors.Control; this.cmdLoadData.Cursor = System.Windows.Forms.Cursors.Default; this.cmdLoadData.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdLoadData.ForeColor = System.Drawing.SystemColors.ControlText; this.cmdLoadData.Location = new System.Drawing.Point(8, 8); this.cmdLoadData.Name = "cmdLoadData"; this.cmdLoadData.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cmdLoadData.Size = new System.Drawing.Size(113, 25); this.cmdLoadData.TabIndex = 9; this.cmdLoadData.Text = "Load Document..."; this.cmdLoadData.UseVisualStyleBackColor = false; this.cmdLoadData.Click += new System.EventHandler(this.cmdLoadData_Click); // // cboDataField // this.cboDataField.BackColor = System.Drawing.SystemColors.Window; this.cboDataField.Cursor = System.Windows.Forms.Cursors.Default; this.cboDataField.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cboDataField.ForeColor = System.Drawing.SystemColors.WindowText; this.cboDataField.Location = new System.Drawing.Point(176, 40); this.cboDataField.Name = "cboDataField"; this.cboDataField.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cboDataField.Size = new System.Drawing.Size(161, 22); this.cboDataField.TabIndex = 8; this.cboDataField.SelectedIndexChanged += new System.EventHandler(this.cboDataField_SelectedIndexChanged); // // cboDataLayer // this.cboDataLayer.BackColor = System.Drawing.SystemColors.Window; this.cboDataLayer.Cursor = System.Windows.Forms.Cursors.Default; this.cboDataLayer.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cboDataLayer.ForeColor = System.Drawing.SystemColors.WindowText; this.cboDataLayer.Location = new System.Drawing.Point(176, 16); this.cboDataLayer.Name = "cboDataLayer"; this.cboDataLayer.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cboDataLayer.Size = new System.Drawing.Size(161, 22); this.cboDataLayer.TabIndex = 7; this.cboDataLayer.SelectedIndexChanged += new System.EventHandler(this.cboDataLayer_SelectedIndexChanged); // // Label2 // this.Label2.BackColor = System.Drawing.SystemColors.Control; this.Label2.Cursor = System.Windows.Forms.Cursors.Default; this.Label2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label2.ForeColor = System.Drawing.SystemColors.ControlText; this.Label2.Location = new System.Drawing.Point(136, 40); this.Label2.Name = "Label2"; this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label2.Size = new System.Drawing.Size(33, 17); this.Label2.TabIndex = 12; this.Label2.Text = "Fields:"; // // Label1 // this.Label1.BackColor = System.Drawing.SystemColors.Control; this.Label1.Cursor = System.Windows.Forms.Cursors.Default; this.Label1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label1.ForeColor = System.Drawing.SystemColors.ControlText; this.Label1.Location = new System.Drawing.Point(136, 16); this.Label1.Name = "Label1"; this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label1.Size = new System.Drawing.Size(41, 17); this.Label1.TabIndex = 11; this.Label1.Text = "Layers:"; // // cmdFullExtent // this.cmdFullExtent.BackColor = System.Drawing.SystemColors.Control; this.cmdFullExtent.Cursor = System.Windows.Forms.Cursors.Default; this.cmdFullExtent.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdFullExtent.ForeColor = System.Drawing.SystemColors.ControlText; this.cmdFullExtent.Location = new System.Drawing.Point(224, 365); this.cmdFullExtent.Name = "cmdFullExtent"; this.cmdFullExtent.RightToLeft = System.Windows.Forms.RightToLeft.No; this.cmdFullExtent.Size = new System.Drawing.Size(113, 25); this.cmdFullExtent.TabIndex = 13; this.cmdFullExtent.Text = "Zoom to Full Extent"; this.cmdFullExtent.UseVisualStyleBackColor = false; this.cmdFullExtent.Click += new System.EventHandler(this.cmdFullExtent_Click); // // Label3 // this.Label3.BackColor = System.Drawing.SystemColors.Control; this.Label3.Cursor = System.Windows.Forms.Cursors.Default; this.Label3.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Label3.ForeColor = System.Drawing.SystemColors.ControlText; this.Label3.Location = new System.Drawing.Point(8, 373); this.Label3.Name = "Label3"; this.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No; this.Label3.Size = new System.Drawing.Size(209, 17); this.Label3.TabIndex = 14; this.Label3.Text = "Left mouse button to zoomin, right to pan"; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(8, 88); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(328, 272); this.axMapControl1.TabIndex = 15; this.axMapControl1.OnMouseDown += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseDownEventHandler(this.axMapControl1_OnMouseDown); // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(300, 68); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(32, 32); this.axLicenseControl1.TabIndex = 16; // // chkTransparent // this.chkTransparent.AutoSize = true; this.chkTransparent.Location = new System.Drawing.Point(8, 65); this.chkTransparent.Name = "chkTransparent"; this.chkTransparent.Size = new System.Drawing.Size(106, 17); this.chkTransparent.TabIndex = 17; this.chkTransparent.Text = "Transparent Tips"; this.chkTransparent.UseVisualStyleBackColor = true; this.chkTransparent.CheckedChanged += new System.EventHandler(this.chkTransparent_CheckedChanged); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(344, 400); this.Controls.Add(this.chkTransparent); this.Controls.Add(this.axLicenseControl1); this.Controls.Add(this.axMapControl1); this.Controls.Add(this.cmdFullExtent); this.Controls.Add(this.Label3); this.Controls.Add(this.chkShowTips); this.Controls.Add(this.cmdLoadData); this.Controls.Add(this.cboDataField); this.Controls.Add(this.cboDataLayer); this.Controls.Add(this.Label2); this.Controls.Add(this.Label1); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// 根据离散点数据动态生成featureclass点图层 /// </summary> /// <params name="vectors"></params> /// <returns></returns> private static IFeatureClass GetFeatureCLass(LibGeometry.Vector3_DW[] vectors, ESRI.ArcGIS.Controls.AxMapControl map) { IWorkspaceFactory pWorkspaceFactory = new InMemoryWorkspaceFactoryClass(); IWorkspaceName pWorkspaceName = pWorkspaceFactory.Create("", "pWorkspace", null, 0); IName pName = (IName)pWorkspaceName; IWorkspace pWorkspace = (IWorkspace)pName.Open(); IFeatureWorkspace pFeatureWorkspace = pWorkspace as IFeatureWorkspace; IFields pFields = new FieldsClass(); IFieldsEdit pFieldsEdit = pFields as IFieldsEdit; IField pField = new FieldClass(); IFieldEdit pFieldEdit = pField as IFieldEdit; pFieldEdit.Name_2 = "SHAPE"; pFieldEdit.Type_2 = esriFieldType.esriFieldTypeGeometry; IGeometryDef pGeometryDef = new GeometryDefClass(); IGeometryDefEdit pGeometryDefEdit = pGeometryDef as IGeometryDefEdit; pGeometryDefEdit.GeometryType_2 = esriGeometryType.esriGeometryPoint; //为FeatureClass赋参考系,不写会出错*************************************** pGeometryDefEdit.SpatialReference_2 = map.SpatialReference; //************************************************************************ pFieldEdit.GeometryDef_2 = pGeometryDef; pFieldsEdit.AddField(pField); pField = new FieldClass();//不要省略写!容易出问题 pFieldEdit = pField as IFieldEdit; pFieldEdit.AliasName_2 = "高程"; pFieldEdit.Name_2 = "CoordinateZ"; pFieldEdit.Type_2 = esriFieldType.esriFieldTypeDouble; pFieldsEdit.AddField(pField); pFeatureWorkspace = pWorkspaceFactory.OpenFromFile(Application.StartupPath + "\\tempRaster", 0) as IFeatureWorkspace; IFeatureClass pFeatureClass = pFeatureWorkspace.CreateFeatureClass("points", pFields, null, null, esriFeatureType.esriFTSimple, "Shape", ""); //IWorkspaceFactory pWorkSpaceFac = new ShapefileWorkspaceFactoryClass(); //IFeatureWorkspace pFeatureWorkSpace = pWorkSpaceFac.OpenFromFile(shpfolder, 0) as IFeatureWorkspace; ////创建字段集2 //IFeatureClassDescription fcDescription = new FeatureClassDescriptionClass(); //IObjectClassDescription ocDescription = (IObjectClassDescription)fcDescription;//创建必要字段 //IFields fields = ocDescription.RequiredFields; //int shapeFieldIndex = fields.FindField(fcDescription.ShapeFieldName); //IField field = fields.get_Field(shapeFieldIndex); //IGeometryDef geometryDef = field.GeometryDef; //IGeometryDefEdit geometryDefEdit = (IGeometryDefEdit)geometryDef; ////geometryDefEdit.GeometryType_2 = esriGeometryType.esriGeometryPoint; ////geometryDefEdit.SpatialReference_2 = spatialReference; //geometryDefEdit.GeometryType_2 = esriGeometryType.esriGeometryPolygon; //ISpatialReferenceFactory pSpatialRefFac = new SpatialReferenceEnvironmentClass(); //IProjectedCoordinateSystem pcsSys = pSpatialRefFac.CreateProjectedCoordinateSystem((int)esriSRProjCS4Type.esriSRProjCS_Xian1980_3_Degree_GK_Zone_39); //geometryDefEdit.SpatialReference_2 = pcsSys; //IFieldChecker fieldChecker = new FieldCheckerClass(); //IEnumFieldError enumFieldError = null; //IFields validatedFields = null; //将传入字段 转成 validatedFields //fieldChecker.ValidateWorkspace = (IWorkspace)pFeatureWorkSpace; //fieldChecker.Validate(fields, out enumFieldError, out validatedFields); //pFeatureWorkSpace.CreateFeatureClass(shpname, validatedFields, ocDescription.InstanceCLSID, ocDescription.ClassExtensionCLSID, esriFeatureType.esriFTSimple, fcDescription.ShapeFieldName, ""); //从vectors中获取散点值 Dictionary <int, IPoint> pointDictionary = new Dictionary <int, IPoint>(); for (int i = 0; i < vectors.Length; i++) { IPoint pPoint = new PointClass(); pPoint.X = vectors[i].X; pPoint.Y = vectors[i].Y; pPoint.Z = vectors[i].Z; if (pPoint.Z.ToString() != "非数字") { pointDictionary.Add(i, pPoint); } } //插入到新建的FeatureClass中 IWorkspaceEdit pWorkspaceEdit = pWorkspace as IWorkspaceEdit; pWorkspaceEdit.StartEditing(true); pWorkspaceEdit.StartEditOperation(); IFeatureBuffer pFeatureBuffer = pFeatureClass.CreateFeatureBuffer(); IFeatureCursor pFeatureCursor = pFeatureClass.Insert(true); for (int featureNum = 4; featureNum < pointDictionary.Count; featureNum++) { pFeatureBuffer.Shape = pointDictionary[featureNum] as IPoint; //出错点,在于新建字段的错误 pFeatureBuffer.set_Value(pFeatureClass.Fields.FindField("CoordinateZ"), pointDictionary[featureNum].Z); pFeatureCursor.InsertFeature(pFeatureBuffer); } pFeatureCursor.Flush(); pWorkspaceEdit.StopEditOperation(); pWorkspaceEdit.StopEditing(true); return(pFeatureClass); }