private bool EditVariableCommand_CanExecute() { if (IsLocalView) return SelectedLocalVariable != null; else return SelectedGlobalVariable != null; }