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