private static Color ShowColorDialog(Color color) { using (var dialog = new ColorChooserForm()) { dialog.Color = color; return dialog.ShowDialog() == DialogResult.OK ? dialog.Color : color; } }