private Image GetButtonImage(ActiproSoftware.WinUICore.ScrollBarButton button, ActiproSyntaxEditorRenderer.ScrollbarStatus state)
        {
            string str1 = ActiproSyntaxEditorRenderer.pathPrefix;
            string orientationPrefix = this.GetOrientationPrefix(button.ScrollBar.Orientation);
            string statePrefix       = this.GetStatePrefix(state);
            string str2 = "";

            if (button.CommandLink.Command == button.ScrollBar.DecreaseSmallCommand)
            {
                str2 = "Decrease";
            }
            else if (button.CommandLink.Command == button.ScrollBar.IncreaseSmallCommand)
            {
                str2 = "Increase";
            }
            return(this.CreateImageFromResource(str1 + orientationPrefix + statePrefix + this.themeImagePrefix + "_" + str2 + ".png"));
        }
        public override void DrawScrollBarButton(PaintEventArgs e, Rectangle bounds, ActiproSoftware.WinUICore.ScrollBarButton button)
        {
            Graphics graphics = e.Graphics;

            ActiproSyntaxEditorRenderer.ScrollbarStatus scrollbarStatus = this.GetScrollbarStatus(button.GetDrawState());
            Image buttonImage = this.GetButtonImage(button, scrollbarStatus);

            try
            {
                graphics.DrawImage(buttonImage, bounds);
            }
            finally
            {
                if (buttonImage != null)
                {
                    buttonImage.Dispose();
                }
            }
        }