private void kbtnCueTypeface_Click(object sender, EventArgs e) { var cueTypeface = new KryptonFontDialog(); if (cueTypeface.ShowDialog() == DialogResult.OK) { _cueTypeface = cueTypeface.Font; } }
private void ButtonShowFontDialog_Click(object sender, EventArgs e) { var kfd = new KryptonFontDialog { ShowColor = chkShowColour.Checked, ShowHelp = chkShowHelp.Checked, AllowScriptChange = chkAllowScriptChange.Checked, AllowSimulations = chkAllowSimulations.Checked, AllowVectorFonts = chkAllowVectorFonts.Checked, ShowApply = chkShowApply.Checked, ShowEffects = chkShowEffects.Checked, Font = fontLast, Title = @"Test Font Dialog being set", DisplayIsPrinterFontDescription = true, DisplayExtendedColorsButton = chklShowExtendedColours.Checked, ShowIcon = chkShowIcon.Checked }; kfd.Color = Color.DarkOliveGreen; if (kfd.ShowDialog(this) == DialogResult.OK) { KryptonMessageBox.Show(this, kfd.Font.ToString(), @"Font chosen is"); fontLast = kfd.Font; } }