public void RegisterAppearance(ChartAppearance appearance, ViewType viewType, Palette palette) { AppearanceColors row = new AppearanceColors(appearance, palette); matrix.Add(row); for (int i = 0; i <= palette.Count; i++) row[i] = AddStyleEditor(AppearanceImageHelper.CreateImage(viewType, appearance, palette, i), i); lastRegisteredAppearance++; }