ICSharpCode.Core.ToolbarService.UpdateToolbarText C# (CSharp) Method

UpdateToolbarText() public static method

public static UpdateToolbarText ( ToolStrip toolStrip ) : void
toolStrip System.Windows.Forms.ToolStrip
return void
        public static void UpdateToolbarText(ToolStrip toolStrip)
        {
            toolStrip.SuspendLayout();
            foreach (ToolStripItem item in toolStrip.Items) {
                if (item is IStatusUpdate) {
                    ((IStatusUpdate)item).UpdateText();
                }
            }
            toolStrip.ResumeLayout();
        }

Usage Example

Exemplo n.º 1
0
 void OnLanguageChanged(object sender, EventArgs e)
 {
     ToolbarService.UpdateToolbarText(toolStrip);
 }