private void simpleButton4_Click(object sender, EventArgs e)
{
//创建一个文件打开对话框来打开源文件
OpenFileDialog pDlg = new OpenFileDialog();
pDlg.Filter = "Shape(*.shp)|*.shp|All Files(*.*)|*.*";
pDlg.Title = "Open Shapefile data";
if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
textBox2.Text = pDlg.FileName;
}
}
private void simpleButton3_Click(object sender, EventArgs e)
{
//创建一个文件打开对话框来打开源文件
OpenFileDialog pDlg = new OpenFileDialog();
pDlg.Filter = "Shape(*.shp)|*.shp|All Files(*.*)|*.*";
pDlg.Title = "Open Shapefile data";
if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
textBox1.Text = pDlg.FileName;
}
}
private void simpleButton1_Click(object sender, EventArgs e)
{
if ((textBox1.Text == "") || (textBox2.Text == ""))
return;
//获得去除后缀名的的文件名及路径
string strShpfile_Source = System.IO.Path.GetFileNameWithoutExtension(textBox1.Text);
string str
{
//创建一个文件打开对话框来打开源文件
OpenFileDialog pDlg = new OpenFileDialog();
pDlg.Filter = "Shape(*.shp)|*.shp|All Files(*.*)|*.*";
pDlg.Title = "Open Shapefile data";
if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
textBox2.Text = pDlg.FileName;
}
}
private void simpleButton3_Click(object sender, EventArgs e)
{
//创建一个文件打开对话框来打开源文件
OpenFileDialog pDlg = new OpenFileDialog();
pDlg.Filter = "Shape(*.shp)|*.shp|All Files(*.*)|*.*";
pDlg.Title = "Open Shapefile data";
if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
textBox1.Text = pDlg.FileName;
}
}
private void simpleButton1_Click(object sender, EventArgs e)
{
if ((textBox1.Text == "") || (textBox2.Text == ""))
return;
//获得去除后缀名的的文件名及路径
string strShpfile_Source = System.IO.Path.GetFileNameWithoutExtension(textBox1.Text);
string str