private void btnOptions_Click(object sender, EventArgs e) { SongFormatDlg f = new SongFormatDlg(); f.LoadFromStr(Program.ConfigHelper.SongDefaultFormat); if (f.ShowDialog() == DialogResult.OK) { #if DEMO new DemoVersionOnly("Changing format").ShowDialog(); #else Program.ConfigHelper.SongDefaultFormat = f.SaveToStr(); Program.ConfigHelper.NotifySongDefaultsChanged(); #endif } }
private void btnOptions_Click(object sender, EventArgs e) { SongFormatDlg f = new SongFormatDlg(); f.StripFormatting = proj.StripFormatting; f.VerseNumbers = proj.VerseNumbers; if (f.ShowDialog() == DialogResult.OK) { #if DEMO new DemoVersionOnly("Changing format").ShowDialog(); #else proj.StripFormatting = f.StripFormatting; proj.VerseNumbers = f.VerseNumbers; proj.currentSong.Settings = f.SaveToStr(); proj.currentSong.AcceptChanges(); songPreviewControl1.RefreshData(); proj.RefreshUI(); #endif } }