Пример #1
0
 private void SetPalette(CustomPalette customPalette)
 {
     if (KryptonManager == null)
     {
         return;
     }
     if (StatusStrip != null)
     {
         StatusStrip.RenderMode = customPalette.RenderMode;
     }
     KryptonManager.GlobalPalette     = customPalette.Palette;
     KryptonManager.GlobalPaletteMode = PaletteModeManager.Custom;
 }
Пример #2
0
        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));
        }
Пример #4
0
 public PaletteSelectedEventArgs(CustomPalette customPalette)
 {
     Name          = customPalette.DisplayName;
     PaletteMode   = PaletteModeManager.Custom;
     CustomPalette = customPalette;
 }
Пример #5
0
 public void Remove(CustomPalette palette)
 {
     List.Remove(palette);
 }
Пример #6
0
 public void Add(CustomPalette palette)
 {
     List.Add(palette);
 }