protected override void HideComponentes(TabPage page)
 {
     if (General_TP.Equals(page))
     {
         CurrencyManager cm = (CurrencyManager)BindingContext[Partidas_DGW.DataSource];
         cm.SuspendBinding();
         foreach (DataGridViewRow row in Partidas_DGW.Rows)
         {
             if ((row.DataBoundItem as Batch).IsKitComponent)
             {
                 row.Visible = false;
             }
         }
     }
     else if (Stock_TP.Equals(page))
     {
         CurrencyManager cm = (CurrencyManager)BindingContext[Stock_DGW.DataSource];
         cm.SuspendBinding();
         foreach (DataGridViewRow row in Stock_DGW.Rows)
         {
             if ((row.DataBoundItem as Stock).IsKitComponent)
             {
                 row.Visible = false;
             }
         }
     }
 }
 protected void HideComponentes(TabPage page)
 {
     if (Stock_TP.Equals(page))
     {
         CurrencyManager cm = (CurrencyManager)BindingContext[Stock_DGW.DataSource];
         cm.SuspendBinding();
         foreach (DataGridViewRow row in Stock_DGW.Rows)
         {
             if ((row.DataBoundItem as StockInfo).IsKitComponent)
             {
                 row.Visible = false;
             }
         }
     }
     else if (Partidas_TP.Equals(page))
     {
         CurrencyManager cm = (CurrencyManager)BindingContext[Partidas_DGW.DataSource];
         cm.SuspendBinding();
         foreach (DataGridViewRow row in Partidas_DGW.Rows)
         {
             if ((row.DataBoundItem as BatchInfo).IsKitComponent)
             {
                 row.Visible = false;
             }
         }
     }
     else if (Components_TP.Equals(page))
     {
         if (Kit_CkB.Checked)
         {
             if (!Parts_TC.TabPages.Contains(Components_TP))
             {
                 Parts_TC.TabPages.Add(Components_TP);
             }
         }
         else
         {
             if (Parts_TC.TabPages.Contains(Components_TP))
             {
                 Parts_TC.TabPages.Remove(Components_TP);
             }
         }
     }
 }