private void button2_Click(object sender, EventArgs e) { if (Parameter.p1[0, 0] == 0) { MessageBox.Show("请先导入文件并计算!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { ReadAndWrite obj = new ReadAndWrite(); obj.write(); } }
private void button8_Click(object sender, EventArgs e) { ReadAndWrite obj = new ReadAndWrite(); obj.write(); }