private void editSimulationParametersToolStripMenuItem_Click(object sender, EventArgs e) { WaveSettings set = Engine.Settings; SimSettingsForm ssf = new SimSettingsForm(); ssf.Settings = set; ssf.ShowDialog(); if (ssf.Settings != null) { Engine.Settings = ssf.Settings; } }