void setEventWindow_FormClosed(object sender, FormClosedEventArgs e) { listBeats[nMouseClickedIndex].Event = setEventWindow.EventName; setEventWindow = null; }
private void EditEventButton_Click(object sender, EventArgs e) { if (setEventWindow == null) { setEventWindow = new SetEvent(); setEventWindow.FormClosed += new FormClosedEventHandler(setEventWindow_FormClosed); setEventWindow.EventName = listBeats[nMouseClickedIndex].Event; setEventWindow.ShowDialog(); } }