/* constructor */ public SignalFilter() { /* display main frame, freeze it and show dialog * for data input */ main = new MainFrame(this); main.Show(); main.Enabled = false; input = new InputFrame(this); input.Show(); input.Activate(); maxNoise = 0.0; maxClean = 0.0; minClean = 0.0; }
/* opening dialog for data input */ private void configToolStripMenuItem_Click(object sender, EventArgs e) { if (simInProgress) /* simulation is running */ { MessageBox.Show("Please stop already running simulation", "Unable to reset", MessageBoxButtons.OK, MessageBoxIcon.Stop); return; } /* freeze main frame and show dialog for data input */ this.Enabled = false; if (input == null) { input = new InputFrame(filter); } input.Show(); return; }