using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace HCTools { public partial class Dgxinterpl : Form { public Dgxinterpl() { InitializeComponent(); } private void button_ok_Click(object sender, EventArgs e) { if (textBox_dgj.Text == "") { MessageBox.Show("请输入等高距!"); return; } Dgxinters.dgj = Convert.ToInt32(textBox_dgj.Text); Dgxinters dgxinter = new Dgxinters(); this.Close(); dgxinter.Interdgx(); } private void button_cancel_Click(object sender, EventArgs e) { this.Close(); } } }