Translated the ColorToolbox from java into C#