예제 #1
0
        private void btnFont_Click(object sender, EventArgs e)
        {
#if DEMO
            new DemoVersionOnly("Changing font").ShowDialog();
#else
            FontSelection fsForm = new FontSelection();
            currentRow.FontId = currentRow.AutoNumber;
            fsForm.LoadFont(PresenterFont.GetFontFromDatabase(currentRow.FontId));
            if (fsForm.ShowDialog() == DialogResult.OK)
            {
                PresenterFont.SaveFontToDatabase(currentRow.FontId, fsForm.PresenterFont);
            }
#endif
        }
예제 #2
0
 private void btnFont_Click(object sender, EventArgs e)
 {
     #if DEMO
     new DemoVersionOnly("Changing font").ShowDialog();
     #else
     FontSelection fsForm = new FontSelection();
     fsForm.LoadFont(PresenterFont.GetFontFromDatabase(-2));
     if (fsForm.ShowDialog() == DialogResult.OK)
     {
         PresenterFont.SaveFontToDatabase(-2, fsForm.PresenterFont);
     }
     Program.ConfigHelper.NotifySongDefaultsChanged();
     #endif
 }
예제 #3
0
        private void btnFont_Click(object sender, EventArgs e)
        {
            FontSelection f = new FontSelection();

            f.LoadFont(proj.font);
            f.gbAlignment.Visible = false;
            f.gbEffects.Visible   = false;
            if (f.ShowDialog() == DialogResult.OK)
            {
                proj.font = f.PresenterFont;
                proj.RefreshUI();
                proj.dirty = true;
            }
        }
예제 #4
0
        private void btnFont_Click(object sender, EventArgs e)
        {
#if DEMO
            new DemoVersionOnly("Changing font").ShowDialog();
#else
            FontSelection fsForm = new FontSelection();
            fsForm.LoadFont(PresenterFont.GetFontFromDatabase(-1));
            fsForm.cbDoubleSpace.Visible = false;
            fsForm.gbAlignment.Visible   = (GetCurrentFormat() != BibleRenderingFormat.MultiTranslation);
            if (fsForm.ShowDialog() == DialogResult.OK)
            {
                PresenterFont.SaveFontToDatabase(-1, fsForm.PresenterFont);
                proj.RefreshData();
            }
#endif
        }
예제 #5
0
        private void btnFont_Click(object sender, EventArgs e)
        {
#if DEMO
            new DemoVersionOnly("Changing font").ShowDialog();
#else
            FontSelection fsForm = new FontSelection();
            fsForm.LoadFont(PresenterFont.GetFontFromDatabase(proj.currentSong.FontId));
            if (fsForm.ShowDialog() == DialogResult.OK)
            {
                proj.currentSong.FontId = proj.currentSong.AutoNumber;
                PresenterFont.SaveFontToDatabase(proj.currentSong.FontId, fsForm.PresenterFont);
                proj.RefreshData();
            }
            proj.currentSong.AcceptChanges();
#endif
        }
예제 #6
0
        private void btnChangeFont_Click(object sender, EventArgs e)
        {
#if DEMO
            new DemoVersionOnly("Changing font").ShowDialog();
#else
            if (currentRegion == null)
            {
                return;
            }

            FontSelection fsForm = new FontSelection();
            fsForm.LoadFont(currentRegion.textRegion.font);
            if (fsForm.ShowDialog() == DialogResult.OK)
            {
                currentRegion.textRegion.font = (PresenterFont)fsForm.PresenterFont.Clone();
                proj.RefreshUI();
                proj.dirty = true;
            }
#endif
        }