예제 #1
0
        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
            }
        }
예제 #2
0
        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
            }
        }