private void cmbSplice_Click(object sender, EventArgs e) { //frmTape tape = new frmTape(sampleMenu); //tape.Visible = true; //tape.Activate(); frmWaveScratch wavePlot = new frmWaveScratch(sampleMenu); wavePlot.Visible = true; wavePlot.Activate(); clearPopUp(); }
private void viewToolStripButton_Click(object sender, EventArgs e) { int _sample = sample; if (globalSettings.osj.sampleLoaded[_sample] == true) { // Seems to have an issue when closing another MDI window - if the scratch window is launched // as an MDI child frmWaveScratch _wavePlot = new frmWaveScratch(_sample); _wavePlot.MdiParent = globalSettings.MDIForm; _wavePlot.Show(); //frmWaveScratch wavePlot = new frmWaveScratch(sample); //wavePlot.Visible = true; //wavePlot.Activate(); } else { System.Windows.Forms.MessageBox.Show("Sample not loaded"); } }