private void DrawTab(Graphics g, TabVS2005 tab, Rectangle rect) { if (Appearance == DockPane.AppearanceStyle.ToolWindow) this.DrawTab_ToolWindow(g, tab, rect); else this.DrawTab_Document(g, tab, rect); }