Skip to content

ColorGrid modifying added custom color #16

@warwolf7

Description

@warwolf7

Hi,
A big thank you for your tool, I love it!
I'm using the colorgrid, and I'm adding the customcolors based on the latest customcolorcollection that the user used. So everytime my dialog is closed with the OK button, the software keeps the CustomColors collection in a public collection. Then when the user reopen the color grid, his latest customcolors are reinserted like this
If MyCustomColorCollection IsNot Nothing Then my_colorpicker.CustomColors = MyCustomColorCollection
If the user dblclick on those custom colors, modify one and click ok, i get this message
System.Collections.Generic.KeyNotFoundException: 'The given key was not present in the dictionary.'

and the line 482 of colorgrid.cs is highlighted.
If I'm doing something wrong, let me know. I would like to use those user customecolor as much as possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions