AutoWikiBrowser.Plugins.Kingbotk.PluginManager.ShowHidePluginTab C# (CSharp) Method

ShowHidePluginTab() static private method

static private ShowHidePluginTab ( TabPage tabp, bool visible ) : void
tabp System.Windows.Forms.TabPage
visible bool
return void
        internal static void ShowHidePluginTab(TabPage tabp, bool visible)
        {
            if (visible)
            {
                // If Not AWBForm.ContainsTabPage(tabp) Then
                bool containedMainTab = AWBForm.ContainsTabPage(KingbotkPluginTab);

                if (containedMainTab)
                    AWBForm.RemoveTabPage(KingbotkPluginTab);
                AWBForm.AddTabPage(tabp);
                if (containedMainTab)
                    AWBForm.AddTabPage(KingbotkPluginTab);
                // End If
                // If AWBForm.ContainsTabPage(tabp) Then
            }
            else
            {
                AWBForm.RemoveTabPage(tabp);
            }
        }