static string FormatColor (Color c) { return string.Format("#{0:X2}{1:X2}{2:X2}", c.Red, c.Green, c.Blue); }