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; } }
/// <summary> /// Resets the values to their default. /// </summary> public void ResetValues() { HorizontalMargin = 30; VerticalMargin = 30; InfoText = string.Empty; ScreenPosition = ScreenPositions.BottomRight; BackgroundColor = SerializableColor.FromColor(Color.White); OutputDepth = OutputDepths.CurrentDepth; OutputDestination = OutputDestinations.TempFolder; OtherFolder = string.Empty; OutputFileName = "wpinfo.bmp"; IgnoreTaskBar = false; Overlays.Clear(); SaveRelativeImagePaths = true; ImageMode = ImageModes.Fit; }