コード例 #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);
        }
コード例 #3
0
        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);
 }