Esempio n. 1
0
 /// <summary>
 /// Set visibility of current TabPage in the parent TabControl.TabPages collection
 /// </summary>
 /// <param name="tabPage">Current TabPage</param>
 /// <param name="visible">Visibility of this tab page</param>
 public static void SetVisible(this TabPage tabPage, bool visible)
 {
     if (visible)
     {
         tabPage.ShowTabPage();
     }
     else
     {
         tabPage.HideTabPage();
     }
 }