using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Display;
namespace 鹰眼2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
LoadDocument();
}
IMapDocument mMapDocument;
private void LoadDocument()
{
mMapDocument = new MapDocumentClass();
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "(*.mxd)|*.mxd";
openFileDialog1.Title = "打开地图文档";
openFileDialog1.ShowDialog();
string Path = openFileDialog1.FileName;
if (axMapControl1.CheckMxFile(Path))