private void SetPalette(CustomPalette customPalette) { if (KryptonManager == null) { return; } if (StatusStrip != null) { StatusStrip.RenderMode = customPalette.RenderMode; } KryptonManager.GlobalPalette = customPalette.Palette; KryptonManager.GlobalPaletteMode = PaletteModeManager.Custom; }
private void AddPalette(CustomPalette customPalette) { if (MenuItems.Items.Contains(customPalette.DisplayName)) { return; } var item = new KryptonContextMenuItem(customPalette.DisplayName) { Tag = customPalette }; item.Click += OnCustomPaletteSelected; MenuItems.Items.Add(item); }
protected override string GetDisplayText(object value) { CustomPalette palette = (CustomPalette)value; return(base.GetDisplayText(palette.DisplayName)); }
public PaletteSelectedEventArgs(CustomPalette customPalette) { Name = customPalette.DisplayName; PaletteMode = PaletteModeManager.Custom; CustomPalette = customPalette; }
public void Remove(CustomPalette palette) { List.Remove(palette); }
public void Add(CustomPalette palette) { List.Add(palette); }