private void button2_Click(object sender, EventArgs e) { if (check.Check()) { return; } if (check.CheckMassDensity()) { return; } if (check.CheckJobName()) { return; } if (check.CheckDGV()) { return; } ReadFormData(); FileNames(); RunProgram(); }