public void Colors() { ColorDialog D = new ColorDialog("", new ColorGroup("Desktop", ColorItem.DesktopColorItems(null), new ColorGroup("Menus", ColorItem.MenuColorItems(null), new ColorGroup("Dialogs/Calc", ColorItem.DialogColorItems(DialogPalettes.GrayDialog, null), new ColorGroup("Editor/Puzzle", ColorItem.WindowColorItems(WindowPalettes.wpBlueWindow, null), new ColorGroup("Ascii table", ColorItem.WindowColorItems(WindowPalettes.wpGrayWindow, null), new ColorGroup("Calendar", ColorItem.WindowColorItems(WindowPalettes.wpCyanWindow, new ColorItem("Current day", 22, null)), null))))))); D.HelpCtx = hcOCColorsDBox; object pal = Application.GetPalette(); if (ExecuteDialog(D, pal) != cmCancel) { Redraw(); } }