Exemple #1
0
 public PopupItem(string text, Color color, ajkControls.IconImage icon, ajkControls.IconImage.ColorStyle iconColorStyle)
 {
     this.text           = text;
     this.color          = color;
     this.icon           = icon;
     this.iconColorStyle = iconColorStyle;
 }
Exemple #2
0
 private void changeIcon(ajkControls.IconImage iconImage, ajkControls.IconImage.ColorStyle color)
 {
     Invoke(new Action(
                () => {
         IconImage = iconImage;
         IconColor = color;
         Invalidate();
     }
                ));
 }
        private void moveTabIcon(ajkControls.IconImage.ColorStyle color)
        {
            iconCount++;
            if (iconCount > 5)
            {
                iconCount = 0;
            }

            if (RequestTabIconChange != null)
            {
                switch (iconCount)
                {
                case 0:
                    RequestTabIconChange(codeEditor.Global.IconImages.Wave0, color);
                    break;

                case 1:
                    RequestTabIconChange(codeEditor.Global.IconImages.Wave1, color);
                    break;

                case 2:
                    RequestTabIconChange(codeEditor.Global.IconImages.Wave2, color);
                    break;

                case 3:
                    RequestTabIconChange(codeEditor.Global.IconImages.Wave3, color);
                    break;

                case 4:
                    RequestTabIconChange(codeEditor.Global.IconImages.Wave4, color);
                    break;

                case 5:
                    RequestTabIconChange(codeEditor.Global.IconImages.Wave5, color);
                    break;
                }
            }
        }
 public AutocompleteItem(string text, byte colorIndex, Color color, ajkControls.IconImage icon, ajkControls.IconImage.ColorStyle iconColorStyle)
 {
     this.text           = text;
     this.colorIndex     = colorIndex;
     this.Color          = color;
     this.icon           = icon;
     this.iconColorStyle = iconColorStyle;
 }