Ejemplo n.º 1
0
        //打开ShapeFile
        private void ToolStripMenuItem_OpenShapfile_Click(object sender, EventArgs e)
        {
            OpenFileDialog op = new OpenFileDialog();

            op.Filter      = "shapefile文件|*.shp";
            op.Multiselect = false;
            if (op.ShowDialog() == DialogResult.OK)
            {
//              ClearAllData();
                string path = System.IO.Path.GetDirectoryName(op.FileName);
                presenter.LoadShapeFile(path, op.SafeFileName.Split('.')[0]);
            }
        }