public static TabStyleProvider CreateProvider(CustomTabControl tabControl) { TabStyleProvider provider; // Depending on the display style of the tabControl generate an appropriate provider. switch (tabControl.DisplayStyle) { case TabStyle.None: provider = new TabStyleNoneProvider(tabControl); break; case TabStyle.Default: provider = new TabStyleDefaultProvider(tabControl); break; case TabStyle.Angled: provider = new TabStyleAngledProvider(tabControl); break; case TabStyle.Rounded: provider = new TabStyleRoundedProvider(tabControl); break; case TabStyle.VisualStudio: provider = new TabStyleVisualStudioProvider(tabControl); break; case TabStyle.Chrome: provider = new TabStyleChromeProvider(tabControl); break; case TabStyle.IE8: provider = new TabStyleIE8Provider(tabControl); break; case TabStyle.VS2010: provider = new TabStyleVS2010Provider(tabControl); break; // HACK: Added case TabStyle.Flat: provider = new TabStyleFlatProvider(tabControl); break; default: provider = new TabStyleDefaultProvider(tabControl); break; } provider._Style = tabControl.DisplayStyle; return(provider); }
public static TabStyleProvider CreateProvider(ATabControl tabControl) { TabStyleProvider provider; // Depending on the display style of the tabControl generate an appropriate provider. switch (tabControl.DisplayStyle) { case TabStyle.None: provider = new TabStyleNoneProvider(tabControl); break; case TabStyle.Default: provider = new TabStyleDefaultProvider(tabControl); break; case TabStyle.Angled: provider = new TabStyleAngledProvider(tabControl); break; case TabStyle.Rounded: provider = new TabStyleRoundedProvider(tabControl); break; case TabStyle.VisualStudio: provider = new TabStyleVisualStudioProvider(tabControl); break; case TabStyle.Chrome: provider = new TabStyleChromeProvider(tabControl); break; case TabStyle.IE8: provider = new TabStyleIE8Provider(tabControl); break; case TabStyle.VS2010: provider = new TabStyleVS2010Provider(tabControl); break; case TabStyle.Amon: provider = new TabStyleAmonProvider(tabControl); break; default: provider = new TabStyleDefaultProvider(tabControl); break; } provider._Style = tabControl.DisplayStyle; return provider; }