private void CycleOneButton(Button button, Command command) { var isEnabled = command.Enabled; button.Enabled = !isEnabled; UpdateButtonEnabled(button, command); }