private void buttonFont_Click(object sender, EventArgs e) { using (var dialog = new FontSelectionDialog()) { dialog.UserFont = this.CurrentFont; if (dialog.ShowDialog() == DialogResult.OK) { if (this.radioDockPanel.Checked) Skin.DockPaneStripSkin.TextFont = dialog.UserFont; else Skin.AutoHideStripSkin.TextFont = dialog.UserFont; } } }
private void buttonFont_Click(object sender, EventArgs e) { using (var dialog = new FontSelectionDialog()) { dialog.UserFont = this.textBoxNotes.Font; if (dialog.ShowDialog() == DialogResult.OK) this.textBoxNotes.Font = dialog.UserFont; } }