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(); }
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(); }