private void editorDeArpegiosToolStripMenuItem_Click(object sender, EventArgs e) { ArpeggioEditor editor = FormFactory.CreateOrActivateFormOfType <ArpeggioEditor>(); editor.FormClosed -= new FormClosedEventHandler(arpeggioEditorClosed); editor.FormClosed += new FormClosedEventHandler(arpeggioEditorClosed); editor.CurrentSong = this.currentSong; }
private void arpeggioEditorClosed(object sender, FormClosedEventArgs e) { ArpeggioEditor editor = sender as ArpeggioEditor; if (editor != null) { editor.FormClosed -= new FormClosedEventHandler(arpeggioEditorClosed); } this.fillPatternList(); this.patEditor.Invalidate(); }