private void SetPaletteMode(PaletteMode mode) { // TODO: delete it cell.SetPaletteMode(null, mode.ToString()); paletteMode = mode; }