コード例 #1
0
        private void SetRender()
        {
            ToolStripRenderer render = null;

            switch (RenderStyle)
            {
            case ToolStripRenderStyle.NormalRender:
                render = new WSNNormToolStripRender();
                break;

            case ToolStripRenderStyle.StatusRender:
                render = new WSNStatusToolStipRender();
                break;

            case ToolStripRenderStyle.VideoTitleBar:
                render = new WSNVideoTitleBarToolStripRender();
                break;

            case ToolStripRenderStyle.VideoToolBar:
                render = new WSNVideoToolBarToolStripRender();
                break;

            default:
                render = new WSNNormToolStripRender();
                break;
            }
            this.Renderer = render;
            this.Invalidate();
        }
コード例 #2
0
        private void SetRender()
        {
            ToolStripRenderer render = null;
            switch (RenderStyle)
            { 
                case ToolStripRenderStyle.NormalRender:
                    render=new WSNNormToolStripRender();
                    break;
                case ToolStripRenderStyle.StatusRender:
                    render = new WSNStatusToolStipRender();
                    break;
                case ToolStripRenderStyle.VideoTitleBar:
                    render = new WSNVideoTitleBarToolStripRender();
                    break;
                case ToolStripRenderStyle.VideoToolBar:
                    render = new WSNVideoToolBarToolStripRender();
                    break;
                default:
                    render = new WSNNormToolStripRender();
                    break;

            }
            this.Renderer = render;
            this.Invalidate();
        }