Exemple #1
0
        private void btnBtnTxtPolyline_Click(object sender, EventArgs e)
        {
            OpenFileDialog openfile = new OpenFileDialog();

            openfile.Filter = "Shp文件(*.shp)|*.shp|所有文件|*.*";
            if (openfile.ShowDialog() == DialogResult.OK)
            {
                txtOutputPolyline.Text = openfile.FileName;

                string szPath        = ClsGDBDataCommon.GetDirectoryNameWithSeperator(txtOutputPolyline.Text);
                string szOutputPoint = szPath + "Point.shp";
                txtOutputPoint.Text = szOutputPoint;
            }
        }
Exemple #2
0
        private void btnDemFilename_Click(object sender, EventArgs e)
        {
            OpenFileDialog openfile = new OpenFileDialog();

            openfile.Filter = "地形文件(*.tif)|*.tif|所有文件|*.*";
            if (openfile.ShowDialog() == DialogResult.OK)
            {
                cmbDemLayer.Text = openfile.FileName;

                string szPath           = ClsGDBDataCommon.GetDirectoryNameWithSeperator(cmbDemLayer.Text);
                string szOutputPolyline = szPath + "Polyline.shp";
                string szOutputPoint    = szPath + "Point.shp";

                txtOutputPoint.Text    = szOutputPoint;
                txtOutputPolyline.Text = szOutputPolyline;
            }
        }