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 }
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 }
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; } }
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 }
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 }
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 }