ARCed.Scripting.ScriptStyleForm.ShowColorDialog C# (CSharp) Méthode

ShowColorDialog() private static méthode

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