Exemplo n.º 1
0
        private void colorsListView_DoubleClick(object sender, EventArgs e)
        {
            var selectedColor = GetSelectedItemColor();

            if (selectedColor != Color.Transparent)
            {
                ColorChangeDialog.Show(selectedColor);
            }
        }
        public static Color Show(Color startColor)
        {
            using (var dialog = new ColorChangeDialog())
            {
                dialog._startColor   = startColor;
                dialog._currentColor = startColor;

                dialog.ShowDialog();

                return(dialog._currentColor);
            }
        }