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