資源簡介
二次開發實驗,AE+C#實現鷹眼功能。附有報告

代碼片段和文件信息
using?System;
using?System.Drawing;
using?System.Runtime.InteropServices;
using?System.Windows.Forms;
using?ESRI.ArcGIS.ADF.baseClasses;
using?ESRI.ArcGIS.ADF.CATIDs;
using?ESRI.ArcGIS.Controls;
using?ESRI.ArcGIS.Carto;
using?ESRI.ArcGIS.SystemUI;
namespace?YLealgeEyes
{
????///?
????///?Summary?description?for?CreateNewDocument.
????///?
????public?class?CreateNewDocument?:?baseCommand
????{
????????private?IHookHelper?m_hookHelper?=?null;
????????//constructor
????????public?CreateNewDocument()
????????{
????????????//update?the?base?properties
????????????base.m_category?=?“.NET?Samples“;
????????????base.m_caption?=?“NewDocument“;
????????????base.m_message?=?“Create?a?new?map“;
????????????base.m_toolTip?=?“Create?a?new?map“;
????????????base.m_name?=?“DotNetTemplate_NewDocumentCommand“;
????????}
????????#region?Overridden?Class?Methods
????????///?
????????///?Occurs?when?this?command?is?created
????????///?
????????///?Instance?of?the?application
????????public?override?void?OnCreate(object?hook)
????????{
????????????if?(m_hookHelper?==?null)
????????????????m_hookHelper?=?new?HookHelperClass();
????????????m_hookHelper.Hook?=?hook;
????????}
????????///?
????????///?Occurs?when?this?command?is?clicked
????????///?
????????public?override?void?onclick()
????????{
????????????IMapControl3?mapControl?=?null;
????????????//get?the?MapControl?from?the?hook?in?case?the?container?is?a?ToolbarControl
????????????if?(m_hookHelper.Hook?is?IToolbarControl)
????????????{
????????????????mapControl?=?(IMapControl3)((IToolbarControl)m_hookHelper.Hook).Buddy;
????????????}
????????????//In?case?the?container?is?MapControl
????????????else?if?(m_hookHelper.Hook?is?IMapControl3)
????????????{
????????????????mapControl?=?(IMapControl3)m_hookHelper.Hook;
????????????}
????????????else
????????????{
????????????????MessageBox.Show(“Active?control?must?be?MapControl!“?“Warning“?MessageBoxButtons.OK?MessageBoxIcon.Exclamation);
????????????????return;
????????????}
????????????//check?to?see?if?there?is?an?active?edit?session?and?whether?edits?have?been?made
????????????DialogResult?result;
????????????IEngineEditor?engineEditor?=?new?EngineEditorClass();
????????????if?((engineEditor.EditState?==?esriEngineEditState.esriEngineStateEditing)?&&?(engineEditor.HasEdits()?==?true))
????????????{
????????????????result?=?MessageBox.Show(“Would?you?like?to?save?your?edits“?“Save?Edits“?MessageBoxButtons.YesNoCancel?MessageBoxIcon.Question);
????????????????switch?(result)
????????????????{
????????????????????case?DialogResult.Cancel:
????????????????????????return;
????????????????????case?DialogResult.No:
????????????????????????engineEditor.StopEditing(false);
????????????????????????break;
????????????????????case?DialogResult.Yes:
????????????????????????engineEditor.StopE
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-04-12?19:38??實驗4?(010312927?楊露)\
?????目錄???????????0??2015-04-12?19:38??實驗4?(010312927?楊露)\YLealgeEyes\
?????目錄???????????0??2015-04-12?19:38??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\
?????文件?????????875??2015-04-09?08:44??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes.sln
?????文件???????26112??2015-04-12?19:37??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes.suo
?????文件????????2238??2015-04-09?08:11??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\App.ico
?????目錄???????????0??2015-04-12?14:30??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\
?????目錄???????????0??2015-04-12?19:38??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\
?????文件???????20280??2011-01-18?18:27??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\Microsoft.Office.Interop.SmartTag.dll
?????文件??????781104??2011-01-18?18:27??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\Microsoft.Office.Interop.Word.dll
?????文件?????1648465??2011-01-18?21:08??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\Microsoft.Office.Interop.Word.xm
?????文件???????64288??2011-01-18?18:27??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\Microsoft.Vbe.Interop.dll
?????文件??????416544??2011-01-18?18:27??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\office.dll
?????文件??????647452??2011-01-18?21:08??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\office.xm
?????文件???????33280??2015-04-12?16:05??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\YLealgeEyes.exe
?????文件???????34304??2015-04-12?16:05??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\YLealgeEyes.pdb
?????文件???????11600??2015-04-12?16:45??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\YLealgeEyes.vshost.exe
?????文件?????????490??2009-08-31?00:40??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\bin\Debug\YLealgeEyes.vshost.exe.manifest
?????文件????????3873??2015-04-09?08:11??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\CreateNewDocument.cs
?????文件????????2238??2015-04-09?08:11??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\Earth.ico
?????文件????????7031??2015-04-12?16:05??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\MainForm.cs
?????文件???????16178??2015-04-12?16:05??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\MainForm.Designer.cs
?????文件???????20674??2015-04-12?15:58??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\MainForm.resx
?????目錄???????????0??2015-04-12?14:30??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\obj\
?????目錄???????????0??2015-04-12?14:30??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\obj\x86\
?????目錄???????????0??2015-04-12?19:38??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\obj\x86\Debug\
?????文件??????122572??2015-04-12?14:34??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????7139??2015-04-12?16:05??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????????666??2015-04-12?16:01??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\obj\x86\Debug\GenerateResource.read.1.tlog
?????文件?????????774??2015-04-12?16:01??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\obj\x86\Debug\GenerateResource.write.1.tlog
?????目錄???????????0??2015-04-12?14:30??實驗4?(010312927?楊露)\YLealgeEyes\YLealgeEyes\obj\x86\Debug\TempPE\
............此處省略18個文件信息