private void OpenTextColorDialog(object sender, EventArgs e) { DialogResult result = TextColorDialog.ShowDialog(); if (result == DialogResult.OK) { LayoutRichTextBox.SelectionColor = TextColorDialog.Color; } }
private void SetBackgroundColor(object sender, EventArgs e) { DialogResult result = TextColorDialog.ShowDialog(); if (result == DialogResult.OK) { Program.Settings.BackgroundColor = SerializableColor.FromColor(TextColorDialog.Color); LayoutRichTextBox.BackColor = TextColorDialog.Color; } }