public AddDateTool(AxToolbarControl toolBar, AxPageLayoutControl pageLayout) { // // TODO: Define values for the public properties // base.m_category = "Custom Command"; //localizable text base.m_caption = "添加日期元素"; //localizable text base.m_message = "添加日期元素"; //localizable text base.m_toolTip = "添加日期元素"; //localizable text base.m_name = "AddDateTool"; //unique id, non-localizable (e.g. "MyCategory_MyTool") try { // // TODO: change resource name if necessary // string bitmapResourceName = GetType().Name + ".bmp"; base.m_bitmap = new Bitmap(GetType(), bitmapResourceName); base.m_cursor = new System.Windows.Forms.Cursor(GetType(), GetType().Name + ".cur"); } catch (Exception ex) { System.Diagnostics.Trace.WriteLine(ex.Message, "Invalid Bitmap"); } this.toolBar = toolBar; this.pageLayout = pageLayout; }
public void init(int programID, AxMapControl mc, AxToolbarControl tc, MainWindow mw) { inited = true; program = new Program(); program.id = programID; program.select(); mapControl = mc; toolbarControl = tc; mainWindow = mw; mainRoadList = program.getAllRelatedMainRoad(); if (mainRoadList == null) mainRoadList = new ObservableCollection<MainRoad>(); foreach (MainRoad mainRoad in mainRoadList) { GisUtil.DrawPolylineElement(mainRoad.lineElement, mapControl); } valid = isValid(); dirty = false; mapControlMouseDown = null; MainRoadListBox.ItemsSource = mainRoadList; }
public CmdRasterMeaAtt(AxMapControl pMapContral, AxToolbarControl toolBar) { // // TODO: Define values for the public properties // base.m_category = "CustomCE"; //localizable text base.m_caption = "栅格统计"; //localizable text base.m_message = "栅格统计"; //localizable text base.m_toolTip = "栅格统计"; //localizable text base.m_name = "CustomCE.CmdRasterMeaAtt"; //unique id, non-localizable (e.g. "MyCategory_MyCommand") try { // // TODO: change bitmap name if necessary // string bitmapResourceName = GetType().Name + ".bmp"; base.m_bitmap = new Bitmap(GetType(), bitmapResourceName); //pGraphiccsContainer = pMapContral.Map as IGraphicsContainer; m_toolBar = toolBar; } catch (Exception ex) { System.Diagnostics.Trace.WriteLine(ex.Message, "Invalid Bitmap"); } }
/// <summary> /// ToolControl中增加控件 /// </summary> /// <param name="axToolbarControl">ToolControl控件引用</param> /// <returns>正常:“”;异常:异常字符串</returns> public SystemErrorType UIToolControlAddItemFix(ref AxToolbarControl axToolbarControl) { try { //添加控件中的item by UID UID uIDZoomInC = new UIDClass(); uIDZoomInC.Value = "esriControlCommands.ControlsMapZoomInFixedCommand"; axToolbarControl.AddItem(uIDZoomInC, -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); UID uIDZoomOutC = new UIDClass(); uIDZoomOutC.Value = "esriControlCommands.ControlsMapZoomOutFixedCommand"; axToolbarControl.AddItem(uIDZoomOutC, -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); //添加控件中的item by progID; up down left right string UPprogID = "esriControlCommands.ControlsMapUpCommand"; axToolbarControl.AddItem(UPprogID, -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); string DownprogID = "esriControlCommands.ControlsMapDownCommand"; axToolbarControl.AddItem(DownprogID, -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl.AddItem("esriControlCommands.ControlsMapLeftCommand"); axToolbarControl.AddItem("esriControlCommands.ControlsMapRightCommand"); //添加控件中的item by ICommand : zoomIn,ZoomOut,Gobal,Walk axToolbarControl.AddItem(new ControlsMapZoomInTool()); axToolbarControl.AddItem(new ControlsMapZoomOutTool()); ICommand command = new ControlsMapFullExtentCommandClass(); axToolbarControl.AddItem(command, -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl.AddItem(new ControlsMapPanTool()); } catch (Exception) { return(SystemErrorType.enumArcObjectHandleError); } return(SystemErrorType.enumOK); }
public void init(int programID, AxMapControl mc, AxToolbarControl tc, MainWindow mw) { inited = true; program = new Program(); program.id = programID; program.select(); mapControl = mc; toolbarControl = tc; mainWindow = mw; OnFinish configUserControlOnFinish = delegate(bool finish) { TabItem configTabItem = ProgramTabControl.FindName("ConfigTabItem") as TabItem; Grid grid = configTabItem.Header as Grid; TextBlock textBlock = grid.Children[0] as TextBlock; if(finish) { textBlock.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#7CFC00")); } else { textBlock.Foreground = new SolidColorBrush(Colors.Black); } }; ConfigUserControl.init(programID, mapControl, configUserControlOnFinish, mainWindow); OnFinish siteSelectorUserControlOnFinish = delegate(bool finish) { TabItem configTabItem = ProgramTabControl.FindName("SiteSelectorTabItem") as TabItem; Grid grid = configTabItem.Header as Grid; TextBlock textBlock = grid.Children[0] as TextBlock; if (finish) { textBlock.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#7CFC00")); } else { textBlock.Foreground = new SolidColorBrush(Colors.Black); } }; SiteSelectorUserControl.init(programID, siteSelectorUserControlOnFinish, mapControl, toolbarControl, mainWindow); OnFinish housePlacerUserControl = delegate(bool finish) { TabItem housePlacerTabItem = ProgramTabControl.FindName("HousePlacerTabItem") as TabItem; Grid grid = housePlacerTabItem.Header as Grid; TextBlock textBlock = grid.Children[0] as TextBlock; if (finish) { textBlock.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#7CFC00")); } else { textBlock.Foreground = new SolidColorBrush(Colors.Black); } }; HousePlacerUserControl.init(programID, mapControl, housePlacerUserControl, mainWindow); }
private void SetInfoLabel(object sender, int index) { AxToolbarControl toolbarControl = sender as AxToolbarControl; IToolbarControl2 toolbar = toolbarControl.Object as IToolbarControl2; IToolbarItem item = toolbar.GetItem(index); ICommand command = item.Command; txtInfo.Text = command.Message; }
public static void initArcgisToolbar(AxToolbarControl toolbar) { toolbar.AddItem("esriControls.ControlsMapZoomInTool", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly); toolbar.AddItem("esriControls.ControlsMapZoomOutTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); toolbar.AddItem("esriControls.ControlsMapFullExtentCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); toolbar.AddItem("esriControls.ControlsMapPanTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); toolbar.AddItem("esriControls.ControlsFeatureSelectionToolbar", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); toolbar.AddItem("esriControls.ControlsMapIdentifyTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); }
public ProjectWindow() { InitializeComponent(); mapControl = new AxMapControl(); toolbarControl = new AxToolbarControl(); windowMapHost.Child = mapControl; windowToolbarHost.Child = toolbarControl; }
// Create ArcGIS Engine Controls and set them to be child of each WindowsFormsHost elements void CreateEngineControls() { //set Engine controls to the child of each hosts mapControl = new AxMapControl(); mapHost.Child = mapControl; toolbarControl = new AxToolbarControl(); toolbarHost.Child = toolbarControl; tocControl = new AxTOCControl(); tocHost.Child = tocControl; }
/// <summary> /// 创建Engine控件并将控件绑定到各自的 WindowsFormsHost 元素上 /// </summary> void CreateEngineControls() { //设置 Engine 控件到每个host的Child属性上 mapControl = new AxMapControl(); mapHost.Child = mapControl; toolbarControl = new AxToolbarControl(); toolbarHost.Child = toolbarControl; tocControl = new AxTOCControl(); tocHost.Child = tocControl; }
public void init(int programID, AxMapControl mc, AxToolbarControl tc, Intersect.ProgramStepUserControl.OnFinish of, MainWindow mw) { inited = true; villageColorRandomer = new VillageColorRandomer(); program = new Program(); program.id = programID; program.select(); villageList = program.getAllRelatedVillage(); if (villageList == null) { villageList = new ObservableCollection<Village>(); } else { foreach (Village village in villageList) { village.polygonElementColorString = villageColorRandomer.randomColor(); InnerRoad innerRoad = village.getRelatedInnerRoad(); village.innerRoad = innerRoad; } } mapControl = mc; toolbarControl = tc; mainWindow = mw; foreach (Village village in villageList) { GisUtil.drawPolygonElement(village.polygonElement, mapControl); GisUtil.UpdatePolygonElementColor(village.polygonElement, mapControl , VillageColorRandomer.GetRedFromColorString(village.polygonElementColorString) , VillageColorRandomer.GetGreenFromColorString(village.polygonElementColorString) , VillageColorRandomer.GetBlueFromColorString(village.polygonElementColorString)); if (village.innerRoad.lineElement != null) GisUtil.DrawPolylineElement(village.innerRoad.lineElement, mapControl); if (village.inUse) { string reverseColorString = VillageColorRandomer.GetReverseVillageColorString(village.polygonElementColorString); GisUtil.UpdatePolygonElementOutline(village.polygonElement, mapControl , VillageColorRandomer.GetRedFromColorString(reverseColorString) , VillageColorRandomer.GetGreenFromColorString(reverseColorString) , VillageColorRandomer.GetBlueFromColorString(reverseColorString)); } } valid = isValid(); dirty = false; onFinish = of; mapControlMouseDown = null; VillageListBox.ItemsSource = villageList; }
/// <summary> /// 初始化当前地图控件 /// </summary> public void InitUc() { UcMap.Map.Name = "地图"; UcMap.MapUnits = esriUnits.esriMeters; TocControl.SetBuddyControl(UcMap.Object); CurTOCControl = TocControl.Object as ITOCControl2; CurActivityMapControl = UcMap; ToolbarControl = Toolbar; TabCtrl.SelectedTabPage = this.TabPageRules; //设置ucresult控件 this.ucResult.Hook = this.CurActivityMapControl.Object; }
void CreateEngineControls() { //set Engine controls to the child of each hosts mapControl = new AxMapControl(); mapHost.Child = mapControl; toolbarControl = new AxToolbarControl(); toolbarHost.Child = toolbarControl; tocControl = new AxTOCControl(); tocHost.Child = tocControl; }
// Create ArcGIS Engine Controls and set them to be child of each WindowsFormsHost elements void CreateEngineControls() { //set Engine controls to the child of each hosts mapControl = new AxMapControl(); mapHost.Child = mapControl; mapControl.Dock = System.Windows.Forms.DockStyle.None; toolbarControl = new AxToolbarControl(); toolbarHost.Child = toolbarControl; //tocControl = new AxTOCControl(); //tocHost.Child = tocControl; }
public void init(int programID, AxMapControl mc, AxToolbarControl tc, MainWindow mw) { if (inited) return; inited = true; program = new Program(); program.id = programID; program.select(); mapControl = mc; toolbarControl = tc; mainWindow = mw; innerRoadList = program.getAllRelatedInnerRoad(); if (innerRoadList == null) { innerRoadList = new ObservableCollection<InnerRoad>(); ObservableCollection<Village> villageList = program.getAllRelatedVillage(); foreach (Village village in villageList) { if (village.inUse) { InnerRoad innerRoad = new InnerRoad(); innerRoad.programID = program.id; innerRoad.villageID = village.id; innerRoadList.Add(innerRoad); } } } else { foreach (InnerRoad innerRoad in innerRoadList) { GisUtil.DrawPolylineElement(innerRoad.lineElement, mapControl); } } valid = isValid(); dirty = false; mapControlMouseDown = null; InnerRoadListBox.ItemsSource = innerRoadList; }
private async Task CreateMapControlAsync() { Trace.TraceInformation("{0}: Start of CreateMapControl()", DateTime.Now); Stopwatch time = Stopwatch.StartNew(); ShowText("Loading preview image..."); await EsriLicense.GetLicenseAsync(); Trace.TraceInformation("{0}: CreateMapControl()- Got License - Elapsed time: {1}", DateTime.Now, time.Elapsed); mapToolbar = new AxToolbarControl(); ((ISupportInitialize)mapToolbar).BeginInit(); mapToolbar.Name = "mapToolbar"; //mapToolbar.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); mapToolbar.Location = new Point(0, 0); mapToolbar.Size = new Size(600, 28); //AutoScaleDimensions = new System.Drawing.SizeF(6f, 13F); //AutoScaleMode = AutoScaleMode.Font; ((ISupportInitialize)mapToolbar).EndInit(); mapControl = new AxMapControl(); ((ISupportInitialize)mapControl).BeginInit(); mapControl.Name = "mapControl"; mapControl.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); mapControl.Location = new Point(0, 28); mapControl.Size = new Size(_parent.ClientSize.Width, _parent.ClientSize.Height - 28); _form.ResizeBegin += MapViewer_ResizeBegin; _form.ResizeEnd += MapViewer_ResizeEnd; ((ISupportInitialize)mapControl).EndInit(); // I can't add items until it is activated in a parent control PrepPageForMap(); mapToolbar.AddItem("esriControls.ControlsMapZoomInTool", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapZoomOutTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapPanTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapFullExtentCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapZoomToLastExtentBackCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapZoomToLastExtentForwardCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); //tocControl.SetBuddyControl(mapControl); mapToolbar.SetBuddyControl(mapControl); time.Stop(); Trace.TraceInformation("{0}: End of CreateMapControl() - Elapsed time: {1}", DateTime.Now, time.Elapsed); }
public SystemErrorType UIToolControlAddItem(ref AxToolbarControl axToolbarControl, AxToolBarItem enumAxBarItem) { try { switch (enumAxBarItem) { case AxToolBarItem.enumControlsMapPanTool: axToolbarControl.AddItem(new ControlsMapPanTool()); break; case AxToolBarItem.enumControlsMapDownCommand: axToolbarControl.AddItem("esriControlCommands.ControlsMapDownCommandbreak"); break; case AxToolBarItem.enumControlsMapLeftCommand: axToolbarControl.AddItem("esriControlCommands.ControlsMapLeftCommand"); break; case AxToolBarItem.enumControlsMapRightCommand: axToolbarControl.AddItem("esriControlCommands.ControlsMapRightCommand"); break; case AxToolBarItem.enumControlsMapUpCommand: axToolbarControl.AddItem("esriControlCommands.ControlsMapUpCommand"); break; case AxToolBarItem.enumControlsMapZoomInTool: axToolbarControl.AddItem(new ControlsMapZoomInTool()); break; case AxToolBarItem.enumControlsMapZoomOutTool: axToolbarControl.AddItem(new ControlsMapZoomOutTool()); break; default: return(SystemErrorType.enumTypeNotExist); } return(SystemErrorType.enumOK); }catch (Exception) { return(SystemErrorType.enumArcObjectHandleError); } }
private void CreateMapControl() { Trace.TraceInformation("{0}: Start of CreateMapControl()", DateTime.Now); Stopwatch time = Stopwatch.StartNew(); ShowTextInPreviewPage("Loading preview image..."); if (!EsriLicenseManager.Running) EsriLicenseManager.Start(true); if (!EsriLicenseManager.Running) throw new Exception("Could not initialize an ArcGIS license. \n" + EsriLicenseManager.Message); Trace.TraceInformation("{0}: CreateMapControl()- Got License - Elapsed time: {1}", DateTime.Now, time.Elapsed); mapToolbar = new AxToolbarControl(); ((ISupportInitialize)mapToolbar).BeginInit(); mapToolbar.Name = "mapToolbar"; //mapToolbar.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); mapToolbar.Location = new Point(0, 0); mapToolbar.Size = new Size(600, 28); //AutoScaleDimensions = new System.Drawing.SizeF(6f, 13F); //AutoScaleMode = AutoScaleMode.Font; ((ISupportInitialize)mapToolbar).EndInit(); mapControl = new AxMapControl(); ((ISupportInitialize)mapControl).BeginInit(); mapControl.Name = "mapControl"; mapControl.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); mapControl.Location = new Point(0, 28); mapControl.Size = new Size(tabPage5.ClientSize.Width, tabPage5.ClientSize.Height - 28); ResizeBegin += MapViewer_ResizeBegin; ResizeEnd += MapViewer_ResizeEnd; ((ISupportInitialize)mapControl).EndInit(); // I can't add items until it is activated in a parent control ShowMapInPreviewPage(); mapToolbar.AddItem("esriControls.ControlsMapZoomInTool", -1, -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapZoomOutTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapPanTool", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapFullExtentCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapZoomToLastExtentBackCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); mapToolbar.AddItem("esriControls.ControlsMapZoomToLastExtentForwardCommand", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); //tocControl.SetBuddyControl(mapControl); mapToolbar.SetBuddyControl(mapControl); time.Stop(); Trace.TraceInformation("{0}: End of CreateMapControl() - Elapsed time: {1}", DateTime.Now, time.Elapsed); }
public static void ResetToolbarControl(AxToolbarControl toolbarControl) { toolbarControl.CurrentTool = null; }
/// <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.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.lblCulture = new System.Windows.Forms.Label(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); this.axPageLayoutControl1 = new ESRI.ArcGIS.Controls.AxPageLayoutControl(); this.axTOCControl1 = new ESRI.ArcGIS.Controls.AxTOCControl(); this.axToolbarControl1 = new ESRI.ArcGIS.Controls.AxToolbarControl(); this.tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit(); this.SuspendLayout(); // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25.05695F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 74.94305F)); this.tableLayoutPanel1.Controls.Add(this.lblCulture, 0, 2); this.tableLayoutPanel1.Controls.Add(this.axLicenseControl1, 1, 2); this.tableLayoutPanel1.Controls.Add(this.axPageLayoutControl1, 1, 1); this.tableLayoutPanel1.Controls.Add(this.axTOCControl1, 0, 1); this.tableLayoutPanel1.Controls.Add(this.axToolbarControl1, 0, 0); this.tableLayoutPanel1.Location = new System.Drawing.Point(2, 2); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.598214F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 90.40179F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 39F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(731, 445); this.tableLayoutPanel1.TabIndex = 6; // // lblCulture // this.lblCulture.AutoSize = true; this.lblCulture.Location = new System.Drawing.Point(3, 405); this.lblCulture.Name = "lblCulture"; this.lblCulture.Size = new System.Drawing.Size(35, 13); this.lblCulture.TabIndex = 0; this.lblCulture.Text = "label1"; // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(186, 408); 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 = 1; // // axPageLayoutControl1 // this.axPageLayoutControl1.Location = new System.Drawing.Point(186, 41); this.axPageLayoutControl1.Name = "axPageLayoutControl1"; this.axPageLayoutControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axPageLayoutControl1.OcxState"))); this.axPageLayoutControl1.Size = new System.Drawing.Size(542, 361); this.axPageLayoutControl1.TabIndex = 2; // // axTOCControl1 // this.axTOCControl1.Location = new System.Drawing.Point(3, 41); this.axTOCControl1.Name = "axTOCControl1"; this.axTOCControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axTOCControl1.OcxState"))); this.axTOCControl1.Size = new System.Drawing.Size(177, 361); this.axTOCControl1.TabIndex = 3; // // axToolbarControl1 // this.tableLayoutPanel1.SetColumnSpan(this.axToolbarControl1, 2); this.axToolbarControl1.Location = new System.Drawing.Point(3, 3); this.axToolbarControl1.Name = "axToolbarControl1"; this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState"))); this.axToolbarControl1.Size = new System.Drawing.Size(725, 28); this.axToolbarControl1.TabIndex = 4; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(734, 454); this.Controls.Add(this.tableLayoutPanel1); this.MaximumSize = new System.Drawing.Size(750, 492); this.MinimumSize = new System.Drawing.Size(750, 492); this.Name = "Form1"; this.Text = "CulturalResources"; this.Load += new System.EventHandler(this.Form1_Load); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axPageLayoutControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit(); this.ResumeLayout(false); }
public MapArcObjViewModel() { loadedCmd = new RelayCommand <object>(delegate(object obj) { //뷰객체를 파라미터로 전달받기 mapArcObjView = obj as UserControl; mapHost = mapArcObjView.FindName("mapHost") as WindowsFormsHost; toolbarHost = mapArcObjView.FindName("toolbarHost") as WindowsFormsHost; treeLayer = mapArcObjView.FindName("treeLayer") as TreeView; mapControl = mapHost.Child as AxMapControl; toolbarControl = toolbarHost.Child as AxToolbarControl; //0.맵 초기화 initMap(); //1.레이어초기화 CmmObj.initLayers(); //2.UniqueRenderer 초기화 CmmObj.InitUniqueValueRendererObj(); //3.행정구역경계표시 ShowShapeLayer("BML_GADM_AS", true); //맵마우스클릭 이벤트설정 mapControl.OnMouseUp += OnMouseClick; }); //레이어 ON/OFF chkCmd = new RelayCommand <object>(delegate(object obj) { Button doc = obj as Button; CheckBox chkbox = doc.Template.FindName("chkLayer", doc) as CheckBox; bool chk = (bool)chkbox.IsChecked; //ShowShapeLayer( doc.Tag.ToString(), chk); ShowShapeLayer(doc.Tag.ToString(), chk); //선택된 레이어저장 try { if (chk) { _selectedLayerNms.Add(doc.Tag.ToString()); _selectedLayerNm = doc.Tag.ToString(); } else { _selectedLayerNms.Remove(doc.Tag.ToString()); _selectedLayerNm = _selectedLayerNms.LastOrDefault(); } } catch (Exception) { } }); //GIS초기화 resetCmd = new RelayCommand <object>(async delegate(object obj) { string stat = await resetAction(obj); }); //SHP파일관리창 importCmd = new RelayCommand <object>(async delegate(object obj) { ShpMngView view = new ShpMngView(); if (view.ShowDialog() is bool) { //재조회 string stat = await resetAction(null); } }); }
private static void CreateMapControl(Control control) { Trace.TraceInformation ("{0}: Start of CreateMapControl()", DateTime.Now); Stopwatch time = Stopwatch.StartNew (); _triedToCreateControl = true; // Need to load license before we can initialize the MapViewer Type // FIXME - When MapViewer type gets initialized is unspecified. We are relying on lazy initialization by MSIL if (!EsriLicenseManager.Running) EsriLicenseManager.Start(true); if (!EsriLicenseManager.Running) throw new Exception("Could not initialize an ArcGIS license. \n" + EsriLicenseManager.Message); Trace.TraceInformation("{0}: CreateMapControl()- Got License - Elapsed time: {1}", DateTime.Now, time.Elapsed); _mapToolbar = new AxToolbarControl(); ((ISupportInitialize)_mapToolbar).BeginInit(); _mapToolbar.Name = "mapToolbar"; _mapToolbar.Location = new Point(0, 0); _mapToolbar.Size = new Size(600, 28); ((ISupportInitialize)_mapToolbar).EndInit(); _mapControl = new AxMapControl(); ((ISupportInitialize)_mapControl).BeginInit(); _mapControl.Name = "mapControl"; _mapControl.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); _mapControl.Location = new Point(0, 28); _mapControl.Size = new Size(control.ClientSize.Width, control.ClientSize.Height - 28); ((ISupportInitialize)_mapControl).EndInit(); time.Stop(); Trace.TraceInformation("{0}: End of CreateMapControl() - Elapsed time: {1}", DateTime.Now, time.Elapsed); }
public void init(int programID, Intersect.ProgramStepUserControl.OnFinish of, AxMapControl mc, AxToolbarControl tc, MainWindow mainWindow) { inited = true; onFinish = of; Pager.nowStep = 1; Pager.totalStep = 2; Pager.update(); Pager.nextStepButtonCheck = nextStepCheckValid; Pager.nextStepButtonClick += new EventHandler(nextStepClick); Pager.previewStepButtonClick += new EventHandler(previewStepClick); mapControl = mc; toolbarControl = tc; mapControlMouseDown = onMapControlMouseDown; SelectMainRoadUserControl.init(programID, mapControl, toolbarControl, mainWindow); SelectVillageUserControl.init(programID, mapControl, toolbarControl, of, mainWindow); Thread t = new Thread(delegate() { System.Threading.Thread.Sleep(500); Dispatcher.BeginInvoke((ThreadStart)delegate() { if (isValid()) { onFinish(true); } }); }); t.Start(); }
/// <summary> /// ��ʼ����ǰ��ͼ�ؼ� /// </summary> public void InitUc() { UcMap.Map.Name = "��ͼ"; UcMap.MapUnits = esriUnits.esriMeters; TocControl.SetBuddyControl(UcMap.Object); CurTOCControl = TocControl.Object as ITOCControl2; CurActivityMapControl = UcMap; ToolbarControl = Toolbar; TabCtrl.SelectedTabPage = this.TabPageRules; //����ucresult�ؼ� this.ucResult.Hook = this.CurActivityMapControl.Object; }
/// <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.gpbInkSketch = new System.Windows.Forms.GroupBox(); this.lblAutoComplete = new System.Windows.Forms.Label(); this.lbl10sec = new System.Windows.Forms.Label(); this.lbl1sec = new System.Windows.Forms.Label(); this.tbrAutoComplete = new System.Windows.Forms.TrackBar(); this.radAutoText = new System.Windows.Forms.RadioButton(); this.radAutoGraphic = new System.Windows.Forms.RadioButton(); this.radManual = new System.Windows.Forms.RadioButton(); this.lblInfo = new System.Windows.Forms.Label(); this.gpbReport = new System.Windows.Forms.GroupBox(); this.tbxNumber = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.lblCollectingStatus = new System.Windows.Forms.Label(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.axToolbarControl1 = new ESRI.ArcGIS.Controls.AxToolbarControl(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); this.gpbInkSketch.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbrAutoComplete)).BeginInit(); this.gpbReport.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); this.SuspendLayout(); // // gpbInkSketch // this.gpbInkSketch.Controls.Add(this.lblAutoComplete); this.gpbInkSketch.Controls.Add(this.lbl10sec); this.gpbInkSketch.Controls.Add(this.lbl1sec); this.gpbInkSketch.Controls.Add(this.tbrAutoComplete); this.gpbInkSketch.Controls.Add(this.radAutoText); this.gpbInkSketch.Controls.Add(this.radAutoGraphic); this.gpbInkSketch.Controls.Add(this.radManual); this.gpbInkSketch.Controls.Add(this.lblInfo); this.gpbInkSketch.Location = new System.Drawing.Point(433, 51); this.gpbInkSketch.Name = "gpbInkSketch"; this.gpbInkSketch.Size = new System.Drawing.Size(296, 352); this.gpbInkSketch.TabIndex = 3; this.gpbInkSketch.TabStop = false; this.gpbInkSketch.Text = "Ink Sketch Commit Options"; // // lblAutoComplete // this.lblAutoComplete.Location = new System.Drawing.Point(24, 240); this.lblAutoComplete.Name = "lblAutoComplete"; this.lblAutoComplete.Size = new System.Drawing.Size(263, 23); this.lblAutoComplete.TabIndex = 7; this.lblAutoComplete.Text = "Automatically Commit the Ink Sketch after:"; // // lbl10sec // this.lbl10sec.Location = new System.Drawing.Point(216, 303); this.lbl10sec.Name = "lbl10sec"; this.lbl10sec.Size = new System.Drawing.Size(64, 24); this.lbl10sec.TabIndex = 6; this.lbl10sec.Text = "(10 sec)"; // // lbl1sec // this.lbl1sec.Location = new System.Drawing.Point(8, 303); this.lbl1sec.Name = "lbl1sec"; this.lbl1sec.Size = new System.Drawing.Size(65, 24); this.lbl1sec.TabIndex = 5; this.lbl1sec.Text = "(1 sec)"; // // tbrAutoComplete // this.tbrAutoComplete.Location = new System.Drawing.Point(8, 264); this.tbrAutoComplete.Minimum = 1; this.tbrAutoComplete.Name = "tbrAutoComplete"; this.tbrAutoComplete.Size = new System.Drawing.Size(264, 56); this.tbrAutoComplete.TabIndex = 4; this.tbrAutoComplete.Value = 1; this.tbrAutoComplete.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tbrAutoComplete_MouseUp); // // radAutoText // this.radAutoText.Location = new System.Drawing.Point(16, 167); this.radAutoText.Name = "radAutoText"; this.radAutoText.Size = new System.Drawing.Size(272, 54); this.radAutoText.TabIndex = 3; this.radAutoText.Text = "Automatically Committed and Recognized as Text (Tablet PC only)"; this.radAutoText.CheckedChanged += new System.EventHandler(this.radAutoText_CheckedChanged); // // radAutoGraphic // this.radAutoGraphic.Location = new System.Drawing.Point(16, 144); this.radAutoGraphic.Name = "radAutoGraphic"; this.radAutoGraphic.Size = new System.Drawing.Size(271, 24); this.radAutoGraphic.TabIndex = 2; this.radAutoGraphic.Text = "Automatically Committed to Graphic"; this.radAutoGraphic.CheckedChanged += new System.EventHandler(this.radAutoGraphic_CheckedChanged); // // radManual // this.radManual.Location = new System.Drawing.Point(16, 112); this.radManual.Name = "radManual"; this.radManual.Size = new System.Drawing.Size(160, 24); this.radManual.TabIndex = 1; this.radManual.Text = "Manually Committed"; this.radManual.CheckedChanged += new System.EventHandler(this.radManual_CheckedChanged); // // lblInfo // this.lblInfo.Location = new System.Drawing.Point(16, 40); this.lblInfo.Name = "lblInfo"; this.lblInfo.Size = new System.Drawing.Size(264, 56); this.lblInfo.TabIndex = 0; this.lblInfo.Text = "Ink sketches can be committed manually or automatically. Click on the buttons belo" + "w to change the commit method."; // // gpbReport // this.gpbReport.Controls.Add(this.tbxNumber); this.gpbReport.Controls.Add(this.label1); this.gpbReport.Controls.Add(this.lblCollectingStatus); this.gpbReport.Location = new System.Drawing.Point(433, 409); this.gpbReport.Name = "gpbReport"; this.gpbReport.Size = new System.Drawing.Size(296, 112); this.gpbReport.TabIndex = 4; this.gpbReport.TabStop = false; this.gpbReport.Text = "Sketch Report"; // // tbxNumber // this.tbxNumber.BackColor = System.Drawing.SystemColors.Control; this.tbxNumber.BorderStyle = System.Windows.Forms.BorderStyle.None; this.tbxNumber.Location = new System.Drawing.Point(176, 32); this.tbxNumber.Name = "tbxNumber"; this.tbxNumber.Size = new System.Drawing.Size(100, 15); this.tbxNumber.TabIndex = 2; this.tbxNumber.Text = "0"; // // label1 // this.label1.Location = new System.Drawing.Point(8, 32); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(168, 23); this.label1.TabIndex = 1; this.label1.Text = "Number of Ink Sketches = "; // // lblCollectingStatus // this.lblCollectingStatus.Location = new System.Drawing.Point(8, 80); this.lblCollectingStatus.Name = "lblCollectingStatus"; this.lblCollectingStatus.Size = new System.Drawing.Size(272, 16); this.lblCollectingStatus.TabIndex = 0; // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 58.46906F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 41.53094F)); this.tableLayoutPanel1.Controls.Add(this.gpbInkSketch, 1, 1); this.tableLayoutPanel1.Controls.Add(this.axToolbarControl1, 0, 0); this.tableLayoutPanel1.Controls.Add(this.axMapControl1, 0, 1); this.tableLayoutPanel1.Controls.Add(this.gpbReport, 1, 2); this.tableLayoutPanel1.Controls.Add(this.axLicenseControl1, 0, 2); this.tableLayoutPanel1.Location = new System.Drawing.Point(14, 8); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.88406F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 88.11594F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 120F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(737, 527); this.tableLayoutPanel1.TabIndex = 5; // // axToolbarControl1 // this.tableLayoutPanel1.SetColumnSpan(this.axToolbarControl1, 2); this.axToolbarControl1.Location = new System.Drawing.Point(3, 3); this.axToolbarControl1.Name = "axToolbarControl1"; this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState"))); this.axToolbarControl1.Size = new System.Drawing.Size(729, 28); this.axToolbarControl1.TabIndex = 5; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(3, 51); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(423, 352); this.axMapControl1.TabIndex = 6; this.axMapControl1.OnAfterScreenDraw += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnAfterScreenDrawEventHandler(this.axMapControl1_OnAfterScreenDraw); // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(3, 409); 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 = 7; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(767, 540); this.Controls.Add(this.tableLayoutPanel1); this.MaximumSize = new System.Drawing.Size(775, 580); this.MinimumSize = new System.Drawing.Size(775, 580); this.Name = "Form1"; this.Text = "Ink Sketch Commit"; this.Load += new System.EventHandler(this.Form1_Load); this.gpbInkSketch.ResumeLayout(false); this.gpbInkSketch.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbrAutoComplete)).EndInit(); this.gpbReport.ResumeLayout(false); this.gpbReport.PerformLayout(); this.tableLayoutPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit(); ((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() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainFrm)); this.statusBar1 = new System.Windows.Forms.StatusBar(); this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel(); this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel(); this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem17 = new System.Windows.Forms.MenuItem(); this.menuItem31 = new System.Windows.Forms.MenuItem(); this.menuItem30 = new System.Windows.Forms.MenuItem(); this.menuItem25 = new System.Windows.Forms.MenuItem(); this.menuItem27 = new System.Windows.Forms.MenuItem(); this.menuItem28 = new System.Windows.Forms.MenuItem(); this.menuItem29 = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem20 = new System.Windows.Forms.MenuItem(); this.menuItem11 = new System.Windows.Forms.MenuItem(); this.menuItem36 = new System.Windows.Forms.MenuItem(); this.menuItem37 = new System.Windows.Forms.MenuItem(); this.menuItem38 = new System.Windows.Forms.MenuItem(); this.menuItem39 = new System.Windows.Forms.MenuItem(); this.menuItem40 = new System.Windows.Forms.MenuItem(); this.menuItem15 = new System.Windows.Forms.MenuItem(); this.menuItem16 = new System.Windows.Forms.MenuItem(); this.menuItem34 = new System.Windows.Forms.MenuItem(); this.menuItem41 = new System.Windows.Forms.MenuItem(); this.menuItem42 = new System.Windows.Forms.MenuItem(); this.menuItem43 = new System.Windows.Forms.MenuItem(); this.menuItem44 = new System.Windows.Forms.MenuItem(); this.menuItem45 = new System.Windows.Forms.MenuItem(); this.menuItem46 = new System.Windows.Forms.MenuItem(); this.menuItem47 = new System.Windows.Forms.MenuItem(); this.menuItem48 = new System.Windows.Forms.MenuItem(); this.menuItem49 = new System.Windows.Forms.MenuItem(); this.menuItem52 = new System.Windows.Forms.MenuItem(); this.menuItem50 = new System.Windows.Forms.MenuItem(); this.menuItem51 = new System.Windows.Forms.MenuItem(); this.menuItem53 = new System.Windows.Forms.MenuItem(); this.menuItem54 = new System.Windows.Forms.MenuItem(); this.menuItem55 = new System.Windows.Forms.MenuItem(); this.menuItem56 = new System.Windows.Forms.MenuItem(); this.menuItem57 = new System.Windows.Forms.MenuItem(); this.menuItem58 = new System.Windows.Forms.MenuItem(); this.menuItem59 = new System.Windows.Forms.MenuItem(); this.menuItem60 = new System.Windows.Forms.MenuItem(); this.menuItem61 = new System.Windows.Forms.MenuItem(); this.menuItem12 = new System.Windows.Forms.MenuItem(); this.menuItem69 = new System.Windows.Forms.MenuItem(); this.menuItem18 = new System.Windows.Forms.MenuItem(); this.menuItem19 = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); this.menuItem10 = new System.Windows.Forms.MenuItem(); this.menuItem13 = new System.Windows.Forms.MenuItem(); this.menuItem14 = new System.Windows.Forms.MenuItem(); this.menuItem64 = new System.Windows.Forms.MenuItem(); this.menuItem65 = new System.Windows.Forms.MenuItem(); this.menuItem67 = new System.Windows.Forms.MenuItem(); this.menuItem70 = new System.Windows.Forms.MenuItem(); this.menuItem68 = new System.Windows.Forms.MenuItem(); this.menuItem72 = new System.Windows.Forms.MenuItem(); this.menuItem71 = new System.Windows.Forms.MenuItem(); this.menuItem66 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem23 = new System.Windows.Forms.MenuItem(); this.menuItem62 = new System.Windows.Forms.MenuItem(); this.menuItem63 = new System.Windows.Forms.MenuItem(); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.toolBarBtnNewMxd = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnOpenMxd = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSave = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSeperator = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnUndo = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnRedo = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSeperator2 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnAddData = new System.Windows.Forms.ToolBarButton(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnZoomIn = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnZoomOut = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnPan = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnFull = new System.Windows.Forms.ToolBarButton(); this.toolBarBFixZoomIn = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnFixZoomOut = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnBack = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnTo = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnRSelect = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnQuery = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnFind = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnMeasure = new System.Windows.Forms.ToolBarButton(); this.toolBarButton2 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSelRectangle = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSelLine = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSelEcllipse = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSelPolygon = new System.Windows.Forms.ToolBarButton(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.axMapControl2 = new ESRI.ArcGIS.Controls.AxMapControl(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.treeViewListItem = new System.Windows.Forms.TreeView(); this.comboBoxNetList = new System.Windows.Forms.ComboBox(); this.axTOCControl1 = new ESRI.ArcGIS.Controls.AxTOCControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); this.axToolbarControl1 = new ESRI.ArcGIS.Controls.AxToolbarControl(); this.toolBar2 = new System.Windows.Forms.ToolBar(); this.toolBarButton3 = new System.Windows.Forms.ToolBarButton(); this.contextMenu2 = new System.Windows.Forms.ContextMenu(); this.menuItem21 = new System.Windows.Forms.MenuItem(); this.menuItem22 = new System.Windows.Forms.MenuItem(); this.menuItem24 = new System.Windows.Forms.MenuItem(); this.menuItem26 = new System.Windows.Forms.MenuItem(); this.menuItem32 = new System.Windows.Forms.MenuItem(); this.menuItem33 = new System.Windows.Forms.MenuItem(); this.toolBarButton6 = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonOpen = new System.Windows.Forms.ToolBarButton(); this.toolBarButton4 = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonAdd = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonMove = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonSolve = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonWin = new System.Windows.Forms.ToolBarButton(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.contextMenu3 = new System.Windows.Forms.ContextMenu(); this.menuItem35 = new System.Windows.Forms.MenuItem(); this.buttonNetSetting = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl2)).BeginInit(); this.tabPage2.SuspendLayout(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); this.SuspendLayout(); // // statusBar1 // this.statusBar1.Location = new System.Drawing.Point(0, 429); this.statusBar1.Name = "statusBar1"; this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] { this.statusBarPanel1, this.statusBarPanel2}); this.statusBar1.ShowPanels = true; this.statusBar1.Size = new System.Drawing.Size(960, 22); this.statusBar1.TabIndex = 11; // // statusBarPanel1 // this.statusBarPanel1.Name = "statusBarPanel1"; this.statusBarPanel1.Width = 300; // // statusBarPanel2 // this.statusBarPanel2.Name = "statusBarPanel2"; this.statusBarPanel2.Width = 436; // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem20, this.menuItem11, this.menuItem18, this.menuItem8, this.menuItem64, this.menuItem6}); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem2, this.menuItem3, this.menuItem4, this.menuItem17, this.menuItem31, this.menuItem30, this.menuItem25, this.menuItem27, this.menuItem28, this.menuItem29, this.menuItem5}); this.menuItem1.Text = "�ļ�"; // // menuItem2 // this.menuItem2.Index = 0; this.menuItem2.Text = "����SDE"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // menuItem3 // this.menuItem3.Index = 1; this.menuItem3.Text = "��Raster"; this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click); // // menuItem4 // this.menuItem4.Index = 2; this.menuItem4.Text = "��Shape�ļ�"; this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click); // // menuItem17 // this.menuItem17.Index = 3; this.menuItem17.Text = "��Tin"; this.menuItem17.Click += new System.EventHandler(this.menuItem17_Click); // // menuItem31 // this.menuItem31.Index = 4; this.menuItem31.Text = "��Geometric Network"; this.menuItem31.Click += new System.EventHandler(this.menuItem31_Click); // // menuItem30 // this.menuItem30.Index = 5; this.menuItem30.Text = "-"; // // menuItem25 // this.menuItem25.Index = 6; this.menuItem25.Text = "��dataset�д���featureClass"; this.menuItem25.Click += new System.EventHandler(this.menuItem25_Click); // // menuItem27 // this.menuItem27.Index = 7; this.menuItem27.Text = "-"; // // menuItem28 // this.menuItem28.Index = 8; this.menuItem28.Text = "������JPEG�ļ�"; this.menuItem28.Click += new System.EventHandler(this.menuItem28_Click); // // menuItem29 // this.menuItem29.Index = 9; this.menuItem29.Text = "-"; // // menuItem5 // this.menuItem5.Index = 10; this.menuItem5.Text = "�˳�"; this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click); // // menuItem20 // this.menuItem20.Index = 1; this.menuItem20.Text = "�༭"; // // menuItem11 // this.menuItem11.Index = 2; this.menuItem11.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem36, this.menuItem15, this.menuItem16, this.menuItem43, this.menuItem52, this.menuItem50, this.menuItem51, this.menuItem53, this.menuItem54, this.menuItem55, this.menuItem56, this.menuItem57, this.menuItem58, this.menuItem61, this.menuItem12, this.menuItem69}); this.menuItem11.Text = "�ռ����"; // // menuItem36 // this.menuItem36.Index = 0; this.menuItem36.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem37, this.menuItem38, this.menuItem39, this.menuItem40}); this.menuItem36.Text = "����"; // // menuItem37 // this.menuItem37.Index = 0; this.menuItem37.Text = "ֱ��"; this.menuItem37.Click += new System.EventHandler(this.menuItem37_Click); // // menuItem38 // this.menuItem38.Index = 1; this.menuItem38.Text = "����"; this.menuItem38.Click += new System.EventHandler(this.menuItem38_Click); // // menuItem39 // this.menuItem39.Index = 2; this.menuItem39.Text = "����Ȩ��"; this.menuItem39.Click += new System.EventHandler(this.menuItem39_Click); // // menuItem40 // this.menuItem40.Index = 3; this.menuItem40.Text = "���·��"; this.menuItem40.Click += new System.EventHandler(this.menuItem40_Click); // // menuItem15 // this.menuItem15.Index = 1; this.menuItem15.Text = "�ܶȷ���"; this.menuItem15.Click += new System.EventHandler(this.menuItem15_Click); // // menuItem16 // this.menuItem16.Index = 2; this.menuItem16.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem34, this.menuItem41, this.menuItem42}); this.menuItem16.Text = "դ���ֵ"; // // menuItem34 // this.menuItem34.Index = 0; this.menuItem34.Text = "������Ȩ��"; this.menuItem34.Click += new System.EventHandler(this.menuItem34_Click_1); // // menuItem41 // this.menuItem41.Index = 1; this.menuItem41.Text = "������ֵ"; this.menuItem41.Click += new System.EventHandler(this.menuItem41_Click); // // menuItem42 // this.menuItem42.Index = 2; this.menuItem42.Text = "������"; // // menuItem43 // this.menuItem43.Index = 3; this.menuItem43.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem44, this.menuItem45, this.menuItem46, this.menuItem47, this.menuItem48, this.menuItem49}); this.menuItem43.Text = "�������"; // // menuItem44 // this.menuItem44.Index = 0; this.menuItem44.Text = "��ֵ��"; this.menuItem44.Click += new System.EventHandler(this.menuItem44_Click); // // menuItem45 // this.menuItem45.Index = 1; this.menuItem45.Text = "�¶�"; this.menuItem45.Click += new System.EventHandler(this.menuItem45_Click); // // menuItem46 // this.menuItem46.Index = 2; this.menuItem46.Text = "����"; this.menuItem46.Click += new System.EventHandler(this.menuItem46_Click); // // menuItem47 // this.menuItem47.Index = 3; this.menuItem47.Text = "ɽ����Ӱ"; this.menuItem47.Click += new System.EventHandler(this.menuItem47_Click); // // menuItem48 // this.menuItem48.Index = 4; this.menuItem48.Text = "ͨ��"; this.menuItem48.Click += new System.EventHandler(this.menuItem48_Click); // // menuItem49 // this.menuItem49.Index = 5; this.menuItem49.Text = "���ڷ�"; this.menuItem49.Click += new System.EventHandler(this.menuItem49_Click); // // menuItem52 // this.menuItem52.Index = 4; this.menuItem52.Text = "-"; // // menuItem50 // this.menuItem50.Index = 5; this.menuItem50.Text = "����ͳ��"; this.menuItem50.Click += new System.EventHandler(this.menuItem50_Click); // // menuItem51 // this.menuItem51.Index = 6; this.menuItem51.Text = "�ٽ�ͳ��"; // // menuItem53 // this.menuItem53.Index = 7; this.menuItem53.Text = "����ͳ��"; // // menuItem54 // this.menuItem54.Index = 8; this.menuItem54.Text = "-"; // // menuItem55 // this.menuItem55.Index = 9; this.menuItem55.Text = "դ�����"; // // menuItem56 // this.menuItem56.Index = 10; this.menuItem56.Text = "-"; // // menuItem57 // this.menuItem57.Index = 11; this.menuItem57.Text = "������"; this.menuItem57.Click += new System.EventHandler(this.menuItem57_Click); // // menuItem58 // this.menuItem58.Index = 12; this.menuItem58.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem59, this.menuItem60}); this.menuItem58.Text = "����ת��"; // // menuItem59 // this.menuItem59.Index = 0; this.menuItem59.Text = "����תդ��"; this.menuItem59.Click += new System.EventHandler(this.menuItem59_Click); // // menuItem60 // this.menuItem60.Index = 1; this.menuItem60.Text = "դ��ת����"; this.menuItem60.Click += new System.EventHandler(this.menuItem60_Click); // // menuItem61 // this.menuItem61.Index = 13; this.menuItem61.Text = "-"; // // menuItem12 // this.menuItem12.Index = 14; this.menuItem12.Text = "��������"; this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click_1); // // menuItem69 // this.menuItem69.Index = 15; this.menuItem69.Text = "��ʼ������"; this.menuItem69.Click += new System.EventHandler(this.menuItem69_Click); // // menuItem18 // this.menuItem18.Index = 3; this.menuItem18.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem19}); this.menuItem18.Text = "3D����"; // // menuItem19 // this.menuItem19.Index = 0; this.menuItem19.Text = "��ʾTIN"; this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click); // // menuItem8 // this.menuItem8.Index = 4; this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem9, this.menuItem10, this.menuItem13, this.menuItem14}); this.menuItem8.Text = "�������"; // // menuItem9 // this.menuItem9.Index = 0; this.menuItem9.Text = "�����ʩ����"; this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click); // // menuItem10 // this.menuItem10.Index = 1; this.menuItem10.Text = "����·������"; this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click); // // menuItem13 // this.menuItem13.Index = 2; this.menuItem13.Text = "-"; // // menuItem14 // this.menuItem14.Index = 3; this.menuItem14.Text = "�����������"; this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click); // // menuItem64 // this.menuItem64.Index = 5; this.menuItem64.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem65, this.menuItem67, this.menuItem70, this.menuItem68, this.menuItem72, this.menuItem71, this.menuItem66}); this.menuItem64.Text = "Utility�������"; // // menuItem65 // this.menuItem65.Index = 0; this.menuItem65.Text = "ˮ�ܺͷ��Ź�ͣ"; this.menuItem65.Click += new System.EventHandler(this.menuItem65_Click); // // menuItem67 // this.menuItem67.Index = 1; this.menuItem67.Text = "��˷��"; this.menuItem67.Click += new System.EventHandler(this.menuItem67_Click); // // menuItem70 // this.menuItem70.Index = 2; this.menuItem70.Text = "����ά����Ƶ���"; this.menuItem70.Click += new System.EventHandler(this.menuItem70_Click); // // menuItem68 // this.menuItem68.Index = 3; this.menuItem68.Text = "�������"; this.menuItem68.Click += new System.EventHandler(this.menuItem68_Click); // // menuItem72 // this.menuItem72.Index = 4; this.menuItem72.Text = "��������ͼ"; this.menuItem72.Click += new System.EventHandler(this.menuItem72_Click); // // menuItem71 // this.menuItem71.Index = 5; this.menuItem71.Text = "���̻�ͼ"; this.menuItem71.Click += new System.EventHandler(this.menuItem71_Click); // // menuItem66 // this.menuItem66.Index = 6; this.menuItem66.Text = "��ʼ������"; this.menuItem66.Click += new System.EventHandler(this.menuItem66_Click); // // menuItem6 // this.menuItem6.Index = 6; this.menuItem6.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem7}); this.menuItem6.Text = "����"; // // menuItem7 // this.menuItem7.Index = 0; this.menuItem7.Text = "����"; this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click); // // openFileDialog1 // this.openFileDialog1.Filter = "ͼ���ļ� (*.BMP;*.JPG;*.GIF,*.TIF)|*.BMP;*.JPG;*.GIF,*.tif|Shape�ļ�(*.shp)|*.SHP|�����ļ� " + "(*.*)|*.*"; // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem23, this.menuItem62, this.menuItem63}); // // menuItem23 // this.menuItem23.Index = 0; this.menuItem23.Text = "�Ƴ��ò�"; this.menuItem23.Click += new System.EventHandler(this.menuItem23_Click); // // menuItem62 // this.menuItem62.Index = 1; this.menuItem62.Text = "���Ż�"; this.menuItem62.Click += new System.EventHandler(this.menuItem62_Click); // // menuItem63 // this.menuItem63.Index = 2; this.menuItem63.Text = "��ͼ��ʾ"; this.menuItem63.Click += new System.EventHandler(this.menuItem63_Click); // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarBtnNewMxd, this.toolBarBtnOpenMxd, this.toolBarBtnSave, this.toolBarBtnSeperator, this.toolBarBtnUndo, this.toolBarBtnRedo, this.toolBarBtnSeperator2, this.toolBarBtnAddData, this.toolBarButton1, this.toolBarBtnZoomIn, this.toolBarBtnZoomOut, this.toolBarBtnPan, this.toolBarBtnFull, this.toolBarBFixZoomIn, this.toolBarBtnFixZoomOut, this.toolBarBtnBack, this.toolBarBtnTo, this.toolBarBtnRSelect, this.toolBarBtnQuery, this.toolBarBtnFind, this.toolBarBtnMeasure, this.toolBarButton2, this.toolBarBtnSelRectangle, this.toolBarBtnSelLine, this.toolBarBtnSelEcllipse, this.toolBarBtnSelPolygon}); this.toolBar1.Divider = false; this.toolBar1.DropDownArrows = true; this.toolBar1.ImageList = this.imageList1; this.toolBar1.Location = new System.Drawing.Point(0, 0); this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(960, 26); this.toolBar1.TabIndex = 17; this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick); // // toolBarBtnNewMxd // this.toolBarBtnNewMxd.ImageIndex = 0; this.toolBarBtnNewMxd.Name = "toolBarBtnNewMxd"; // // toolBarBtnOpenMxd // this.toolBarBtnOpenMxd.ImageIndex = 1; this.toolBarBtnOpenMxd.Name = "toolBarBtnOpenMxd"; // // toolBarBtnSave // this.toolBarBtnSave.ImageIndex = 18; this.toolBarBtnSave.Name = "toolBarBtnSave"; // // toolBarBtnSeperator // this.toolBarBtnSeperator.Name = "toolBarBtnSeperator"; this.toolBarBtnSeperator.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnUndo // this.toolBarBtnUndo.ImageIndex = 3; this.toolBarBtnUndo.Name = "toolBarBtnUndo"; // // toolBarBtnRedo // this.toolBarBtnRedo.ImageIndex = 4; this.toolBarBtnRedo.Name = "toolBarBtnRedo"; // // toolBarBtnSeperator2 // this.toolBarBtnSeperator2.Name = "toolBarBtnSeperator2"; this.toolBarBtnSeperator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnAddData // this.toolBarBtnAddData.ImageIndex = 5; this.toolBarBtnAddData.Name = "toolBarBtnAddData"; // // toolBarButton1 // this.toolBarButton1.Name = "toolBarButton1"; this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnZoomIn // this.toolBarBtnZoomIn.ImageIndex = 6; this.toolBarBtnZoomIn.Name = "toolBarBtnZoomIn"; // // toolBarBtnZoomOut // this.toolBarBtnZoomOut.ImageIndex = 7; this.toolBarBtnZoomOut.Name = "toolBarBtnZoomOut"; // // toolBarBtnPan // this.toolBarBtnPan.ImageIndex = 8; this.toolBarBtnPan.Name = "toolBarBtnPan"; // // toolBarBtnFull // this.toolBarBtnFull.ImageIndex = 9; this.toolBarBtnFull.Name = "toolBarBtnFull"; // // toolBarBFixZoomIn // this.toolBarBFixZoomIn.ImageIndex = 11; this.toolBarBFixZoomIn.Name = "toolBarBFixZoomIn"; // // toolBarBtnFixZoomOut // this.toolBarBtnFixZoomOut.ImageIndex = 10; this.toolBarBtnFixZoomOut.Name = "toolBarBtnFixZoomOut"; // // toolBarBtnBack // this.toolBarBtnBack.ImageIndex = 12; this.toolBarBtnBack.Name = "toolBarBtnBack"; // // toolBarBtnTo // this.toolBarBtnTo.ImageIndex = 13; this.toolBarBtnTo.Name = "toolBarBtnTo"; // // toolBarBtnRSelect // this.toolBarBtnRSelect.ImageIndex = 14; this.toolBarBtnRSelect.Name = "toolBarBtnRSelect"; this.toolBarBtnRSelect.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnQuery // this.toolBarBtnQuery.ImageIndex = 15; this.toolBarBtnQuery.Name = "toolBarBtnQuery"; // // toolBarBtnFind // this.toolBarBtnFind.ImageIndex = 16; this.toolBarBtnFind.Name = "toolBarBtnFind"; // // toolBarBtnMeasure // this.toolBarBtnMeasure.ImageIndex = 17; this.toolBarBtnMeasure.Name = "toolBarBtnMeasure"; // // toolBarButton2 // this.toolBarButton2.Name = "toolBarButton2"; this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnSelRectangle // this.toolBarBtnSelRectangle.ImageIndex = 19; this.toolBarBtnSelRectangle.Name = "toolBarBtnSelRectangle"; // // toolBarBtnSelLine // this.toolBarBtnSelLine.ImageIndex = 21; this.toolBarBtnSelLine.Name = "toolBarBtnSelLine"; // // toolBarBtnSelEcllipse // this.toolBarBtnSelEcllipse.ImageIndex = 20; this.toolBarBtnSelEcllipse.Name = "toolBarBtnSelEcllipse"; // // toolBarBtnSelPolygon // this.toolBarBtnSelPolygon.ImageIndex = 22; this.toolBarBtnSelPolygon.Name = "toolBarBtnSelPolygon"; // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; this.imageList1.Images.SetKeyName(0, ""); this.imageList1.Images.SetKeyName(1, ""); this.imageList1.Images.SetKeyName(2, ""); this.imageList1.Images.SetKeyName(3, ""); this.imageList1.Images.SetKeyName(4, ""); this.imageList1.Images.SetKeyName(5, ""); this.imageList1.Images.SetKeyName(6, ""); this.imageList1.Images.SetKeyName(7, ""); this.imageList1.Images.SetKeyName(8, ""); this.imageList1.Images.SetKeyName(9, ""); this.imageList1.Images.SetKeyName(10, ""); this.imageList1.Images.SetKeyName(11, ""); this.imageList1.Images.SetKeyName(12, ""); this.imageList1.Images.SetKeyName(13, ""); this.imageList1.Images.SetKeyName(14, ""); this.imageList1.Images.SetKeyName(15, ""); this.imageList1.Images.SetKeyName(16, ""); this.imageList1.Images.SetKeyName(17, ""); this.imageList1.Images.SetKeyName(18, ""); this.imageList1.Images.SetKeyName(19, ""); this.imageList1.Images.SetKeyName(20, ""); this.imageList1.Images.SetKeyName(21, ""); this.imageList1.Images.SetKeyName(22, ""); this.imageList1.Images.SetKeyName(23, "openNetworkWindow.bmp"); this.imageList1.Images.SetKeyName(24, "AddNetFlags.bmp"); this.imageList1.Images.SetKeyName(25, "moveNetFalgs.bmp"); this.imageList1.Images.SetKeyName(26, "Solve.bmp"); this.imageList1.Images.SetKeyName(27, "openwindow.bmp"); this.imageList1.Images.SetKeyName(28, "openNetSeetingWin.bmp"); // // splitContainer1 // this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer1.Location = new System.Drawing.Point(0, 26); this.splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.tabControl1); this.splitContainer1.Panel1.Controls.Add(this.axTOCControl1); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.axLicenseControl1); this.splitContainer1.Panel2.Controls.Add(this.axToolbarControl1); this.splitContainer1.Panel2.Controls.Add(this.toolBar2); this.splitContainer1.Panel2.Controls.Add(this.axMapControl1); this.splitContainer1.Size = new System.Drawing.Size(960, 403); this.splitContainer1.SplitterDistance = 196; this.splitContainer1.TabIndex = 18; // // tabControl1 // this.tabControl1.Alignment = System.Windows.Forms.TabAlignment.Bottom; this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControl1.Location = new System.Drawing.Point(0, 226); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(196, 177); this.tabControl1.TabIndex = 2; // // tabPage1 // this.tabPage1.Controls.Add(this.axMapControl2); this.tabPage1.Location = new System.Drawing.Point(4, 4); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(188, 152); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "ӥ��"; this.tabPage1.UseVisualStyleBackColor = true; // // axMapControl2 // this.axMapControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.axMapControl2.Location = new System.Drawing.Point(3, 3); this.axMapControl2.Name = "axMapControl2"; this.axMapControl2.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl2.OcxState"))); this.axMapControl2.Size = new System.Drawing.Size(182, 146); this.axMapControl2.TabIndex = 1; this.axMapControl2.OnFullExtentUpdated += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnFullExtentUpdatedEventHandler(this.axMapControl2_OnFullExtentUpdated); this.axMapControl2.OnMouseDown += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseDownEventHandler(this.axMapControl2_OnMouseDown); this.axMapControl2.OnMouseMove += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseMoveEventHandler(this.axMapControl2_OnMouseMove); this.axMapControl2.OnAfterDraw += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnAfterDrawEventHandler(this.axMapControl2_OnAfterDraw); this.axMapControl2.OnMouseUp += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseUpEventHandler(this.axMapControl2_OnMouseUp); // // tabPage2 // this.tabPage2.Controls.Add(this.groupBox1); this.tabPage2.Location = new System.Drawing.Point(4, 4); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); this.tabPage2.Size = new System.Drawing.Size(188, 152); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "�������"; this.tabPage2.UseVisualStyleBackColor = true; // // groupBox1 // this.groupBox1.Controls.Add(this.treeViewListItem); this.groupBox1.Controls.Add(this.comboBoxNetList); this.groupBox1.Controls.Add(this.buttonNetSetting); this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.groupBox1.Location = new System.Drawing.Point(3, 3); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(182, 146); this.groupBox1.TabIndex = 3; this.groupBox1.TabStop = false; // // treeViewListItem // this.treeViewListItem.Dock = System.Windows.Forms.DockStyle.Bottom; this.treeViewListItem.Location = new System.Drawing.Point(3, 46); this.treeViewListItem.Name = "treeViewListItem"; this.treeViewListItem.Size = new System.Drawing.Size(176, 97); this.treeViewListItem.TabIndex = 4; this.treeViewListItem.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewListItem_AfterSelect); this.treeViewListItem.MouseDown += new System.Windows.Forms.MouseEventHandler(this.treeViewListItem_MouseDown); // // comboBoxNetList // this.comboBoxNetList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxNetList.FormattingEnabled = true; this.comboBoxNetList.Location = new System.Drawing.Point(3, 20); this.comboBoxNetList.Name = "comboBoxNetList"; this.comboBoxNetList.Size = new System.Drawing.Size(146, 20); this.comboBoxNetList.TabIndex = 0; // // axTOCControl1 // this.axTOCControl1.Dock = System.Windows.Forms.DockStyle.Top; 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(196, 226); this.axTOCControl1.TabIndex = 0; this.axTOCControl1.OnMouseDown += new ESRI.ArcGIS.Controls.ITOCControlEvents_Ax_OnMouseDownEventHandler(this.axTOCControl1_OnMouseDown); // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(112, 53); 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 = 20; // // axToolbarControl1 // this.axToolbarControl1.Location = new System.Drawing.Point(20, 103); this.axToolbarControl1.Name = "axToolbarControl1"; this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState"))); this.axToolbarControl1.Size = new System.Drawing.Size(645, 28); this.axToolbarControl1.TabIndex = 19; // // toolBar2 // this.toolBar2.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar2.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarButton3, this.toolBarButton6, this.toolBarButtonOpen, this.toolBarButton4, this.toolBarButtonAdd, this.toolBarButtonMove, this.toolBarButtonSolve, this.toolBarButtonWin}); this.toolBar2.Divider = false; this.toolBar2.Dock = System.Windows.Forms.DockStyle.None; this.toolBar2.DropDownArrows = true; this.toolBar2.Font = new System.Drawing.Font("����", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.toolBar2.ImageList = this.imageList1; this.toolBar2.Location = new System.Drawing.Point(294, 51); this.toolBar2.Name = "toolBar2"; this.toolBar2.ShowToolTips = true; this.toolBar2.Size = new System.Drawing.Size(300, 34); this.toolBar2.TabIndex = 1; this.toolBar2.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right; this.toolBar2.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar2_ButtonClick); // // toolBarButton3 // this.toolBarButton3.DropDownMenu = this.contextMenu2; this.toolBarButton3.Name = "toolBarButton3"; this.toolBarButton3.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; this.toolBarButton3.Text = "�������"; // // contextMenu2 // this.contextMenu2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem21, this.menuItem22, this.menuItem24, this.menuItem26, this.menuItem32, this.menuItem33}); // // menuItem21 // this.menuItem21.Index = 0; this.menuItem21.Text = "����·��"; this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click); // // menuItem22 // this.menuItem22.Index = 1; this.menuItem22.Text = "��������"; this.menuItem22.Click += new System.EventHandler(this.menuItem22_Click); // // menuItem24 // this.menuItem24.Index = 2; this.menuItem24.Text = "�����ʩ"; this.menuItem24.Click += new System.EventHandler(this.menuItem24_Click); // // menuItem26 // this.menuItem26.Index = 3; this.menuItem26.Text = "���þ���"; this.menuItem26.Click += new System.EventHandler(this.menuItem26_Click_1); // // menuItem32 // this.menuItem32.Index = 4; this.menuItem32.Text = "-"; // // menuItem33 // this.menuItem33.Index = 5; this.menuItem33.Text = "ѡ��"; // // toolBarButton6 // this.toolBarButton6.Name = "toolBarButton6"; this.toolBarButton6.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButtonOpen // this.toolBarButtonOpen.ImageIndex = 23; this.toolBarButtonOpen.Name = "toolBarButtonOpen"; // // toolBarButton4 // this.toolBarButton4.Name = "toolBarButton4"; this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButtonAdd // this.toolBarButtonAdd.ImageIndex = 24; this.toolBarButtonAdd.Name = "toolBarButtonAdd"; // // toolBarButtonMove // this.toolBarButtonMove.ImageIndex = 25; this.toolBarButtonMove.Name = "toolBarButtonMove"; // // toolBarButtonSolve // this.toolBarButtonSolve.ImageIndex = 26; this.toolBarButtonSolve.Name = "toolBarButtonSolve"; // // toolBarButtonWin // this.toolBarButtonWin.ImageIndex = 27; this.toolBarButtonWin.Name = "toolBarButtonWin"; // // 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(760, 403); this.axMapControl1.TabIndex = 0; this.axMapControl1.OnMouseDown += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseDownEventHandler(this.axMapControl1_OnMouseDown); this.axMapControl1.OnMouseMove += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseMoveEventHandler(this.axMapControl1_OnMouseMove); this.axMapControl1.OnExtentUpdated += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnExtentUpdatedEventHandler(this.axMapControl1_OnExtentUpdated); this.axMapControl1.OnMouseUp += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnMouseUpEventHandler(this.axMapControl1_OnMouseUp); // // contextMenu3 // this.contextMenu3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem35}); // // menuItem35 // this.menuItem35.Index = 0; this.menuItem35.Text = "װ������"; this.menuItem35.Click += new System.EventHandler(this.menuItem35_Click); // // buttonNetSetting // this.buttonNetSetting.ImageIndex = 28; this.buttonNetSetting.ImageList = this.imageList1; this.buttonNetSetting.Location = new System.Drawing.Point(152, 20); this.buttonNetSetting.Name = "buttonNetSetting"; this.buttonNetSetting.Size = new System.Drawing.Size(27, 21); this.buttonNetSetting.TabIndex = 1; this.buttonNetSetting.UseVisualStyleBackColor = true; this.buttonNetSetting.Click += new System.EventHandler(this.buttonNetSetting_Click); // // MainFrm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(960, 451); this.ContextMenu = this.contextMenu1; this.Controls.Add(this.splitContainer1); this.Controls.Add(this.toolBar1); this.Controls.Add(this.statusBar1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mainMenu1; this.Name = "MainFrm"; this.Text = "ArcGIS Engine .Net ��ʾ����"; this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing); this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit(); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.PerformLayout(); this.splitContainer1.ResumeLayout(false); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.axMapControl2)).EndInit(); this.tabPage2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.axTOCControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public void initAxComponents() { if (houseMapControl != null) return; houseMapControl = new AxMapControl(); houseToolbarControl = new AxToolbarControl(); HouseMapHost.Child = houseMapControl; HouseToolbarHost.Child = houseToolbarControl; houseToolbarControl.SetBuddyControl(houseMapControl); if (houseToolbarControl.Count == 0) { houseToolbarControl.AddItem("esriControls.ControlsMapNavigationToolbar"); } }