/// <summary> /// Activar / Desactivar los ToolStripButton de la barra. /// </summary> /// <param name="ts">ToolStrip</param> /// <param name="enabled">bool</param> public static void changeEnableToolStripButtons(System.Windows.Forms.ToolStrip ts, bool enabled) { ts.getToolStripButtons <System.Windows.Forms.ToolStripButton>().ForEach(c => c.Enabled = enabled); }