Example #1
0
        private void btnEditMusic_Click(object sender, EventArgs e)
        {
            SongEditorForm songEditor = new SongEditorForm(proj.currentSong);

            if (songEditor.ShowDialog() == DialogResult.OK)
            {
                proj.RefreshData();
                songPreviewControl1.RefreshData();
                proj.RefreshUI();
            }
        }
Example #2
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (currentSong != null)
     {
         SongEditorForm songEditor = new SongEditorForm(currentSong);
         if (songEditor.ShowDialog() == DialogResult.OK) // TODO: in the future improve this: non-modal
         {
             g.Refresh();
         }
     }
 }
Example #3
0
        private void llNewSong_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            int newAutoNumber = Data.Songs.GetNextAutoNumber();

            PresenterDataset.SongsRow newSong = Program.SongsDS.Songs.NewSongsRow();
            newSong.Image      = -2;
            newSong.AutoNumber = newAutoNumber;
            newSong.Number     = -1;
            newSong.FontId     = -2;
            newSong.Title      = "";
            newSong.Chorus     = "";
            newSong.Overlay    = 777;

            SongEditorForm sef = new SongEditorForm(newSong);

            sef.Show();
        }