Treefrog.Windows.Controls.Composite.TileToolbar.Invalidate C# (CSharp) Method

Invalidate() private method

private Invalidate ( CommandKey key ) : void
key Treefrog.Presentation.Commands.CommandKey
return void
        private void Invalidate(CommandKey key)
        {
            ToolStripButton button;
            if (_commandButtonMap.TryGetValue(key, out button)) {
                button.Enabled = CanPerformCommand(key);
                button.Checked = IsCommandSelected(key);
            }
        }