Exemplo n.º 1
0
        /// <summary>
        /// 打开地图文档
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void openMapDoc_Click(object sender, EventArgs e)
        {
            File file = new File();
            OpenNewMapDocument openDoc = new OpenNewMapDocument(m_controlsSynchronizer);

            openDoc.OnClick();
            DocumentFileName = openDoc.DocumentFileName;
            //file.loadMapDoc(axMapControl1);
        }
Exemplo n.º 2
0
        private void menuItemOpenMapDocument_Click(object sender, EventArgs e)
        {
            // switch to map view
            tabControlMapAndPageLayout.SelectedTab = (TabPage)tabControlMapAndPageLayout.Controls[0];

            //launch the OpenMapDoc command
            OpenNewMapDocument openMapDoc = new OpenNewMapDocument(m_controlsSynchronizer);

            openMapDoc.OnCreate(m_controlsSynchronizer.MapControl.Object);
            openMapDoc.OnClick();

            m_controlsSynchronizer.MapControl.DocumentFilename = openMapDoc.DocumentFileName;
        }