public void DisableCommand(Command cmd) { var btn = Buttons.GetCommandButton (cmd); if (btn != null) btn.Sensitive = false; }