private void btnRecord_Click(object sender, EventArgs e) { if (plmidi.counttracks() > 13) { MessageBox.Show("Maximum number of layers reached."); return; } DlgInstrument dlg = new DlgInstrument(); if (dlg.ShowDialog() != DialogResult.OK) { return; } plmidi.beginRecording(dlg.getWhich()); btnPlay.Enabled = btnDetails.Enabled = btnRecord.Enabled = btnRemove.Enabled = false; btnStop.Enabled = true; bRecording = true; btnStop.Text = "Stop recording"; }
private void btnRecord_Click(object sender, EventArgs e) { if (plmidi.counttracks() > 13) { MessageBox.Show("Maximum number of layers reached."); return; } DlgInstrument dlg = new DlgInstrument(); if (dlg.ShowDialog() != DialogResult.OK) return; plmidi.beginRecording(dlg.getWhich()); btnPlay.Enabled = btnDetails.Enabled = btnRecord.Enabled = btnRemove.Enabled = false; btnStop.Enabled = true; bRecording = true; btnStop.Text = "Stop recording"; }