private void button1_Click(object sender, EventArgs e) { int out_time = 43200; bool result = io.isNumberic(textBox1.Text.ToString(), out out_time); if (!result) { textBox1.Text = "只能输入数字,默认单位秒"; } else { io.writeconfig("IT3K_OPTION", "OPTION_CHECK", out_time.ToString()); this.Dispose(); } }