Пример #1
0
        private void viewNotesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (lvwFiles.SelectedItems.Count != 0)
            {
                ensureAudio();

                NotesFile nf = (NotesFile)lvwFiles.SelectedItems[0].Tag;
                List<string> wavs = getWavs();

                NotesEditorForm frm = new NotesEditorForm();
                frm.Initialise(nf, nf, _song.Notes.HoPoMeasure, _song.Notes.Gh3SustainClipping, wavs.ToArray());
                frm.ShowDialog();
                _song.Notes.HoPoMeasure = frm.HoPoMeasure;
                frm.Dispose();
            }
        }
Пример #2
0
        private void btnGhView_Click(object sender, EventArgs e)
        {
            //bool hasMapped = false;

            if (lvwFiles.Items.Count != 0)
            {
                ensureAudio();

                List<string> wavs = getWavs();

                //hasMapped = true;
                NotesEditorForm frm = new NotesEditorForm();
                frm.Initialise(_song.Notes.BaseFile, _ghItems, _song.Notes.HoPoMeasure, _song.Notes.Gh3SustainClipping, wavs.ToArray());
                frm.ShowDialog();
                _song.Notes.HoPoMeasure = frm.HoPoMeasure;
                _song.Notes.Gh3SustainClipping = frm.Gh3SustainClipping;
                frm.Dispose();

                //refresh the list in case mappings have been added
                refreshMappedItemInformation();

            }

            //if (!hasMapped)
            //    MessageBox.Show(string.Format("There are no mapped note items."), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }