private void button4_Click(object sender, EventArgs e) { shpPath = openShpDialog(); string result = mg.checkValidShp(shpPath); if (result != null && result != "") { MessageBox.Show(result, "错误"); } textBox3.Text = shpPath[0] + @"\" + shpPath[1]; }
private void button1_Click(object sender, EventArgs e) { string[] ShpPath = mg.openShpDialog(); string result = mg.checkValidShp(ShpPath); if (result != null && result != "") { MessageBox.Show(result, "错误"); } shpPathText.Text = ShpPath[0] + @"\" + ShpPath[1]; }