private void resetFontButton_Click(object sender, EventArgs e) { NuGenIChangebleFont changebleFont = panelsComboBox.SelectedItem as NuGenIChangebleFont; if (changebleFont != null) { changebleFont.TempFont = changebleFont.DefaultFont; ExampleTextBox.Font = changebleFont.TempFont.GetFont(); } }
private void changeFontButton_Click(object sender, EventArgs e) { NuGenIChangebleFont changebleFont = panelsComboBox.SelectedItem as NuGenIChangebleFont; if (changebleFont != null) { FontDialog fontDialog = new FontDialog(); fontDialog.Font = changebleFont.Font; if (fontDialog.ShowDialog() == DialogResult.OK) { changebleFont.TempFont = new NuGenSerializableFont(fontDialog.Font); ExampleTextBox.Font = fontDialog.Font; } } }
private void panelsComboBox_SelectedIndexChanged(object sender, EventArgs e) { NuGenIChangebleFont changebleFont = panelsComboBox.SelectedItem as NuGenIChangebleFont; if (changebleFont != null) { if (changebleFont.TempFont == null) { ExampleTextBox.Font = changebleFont.Font; } else { ExampleTextBox.Font = changebleFont.TempFont.GetFont(); } ExampleTextBox.Text = ExampleText; } }