internal bool LoseKeyboardFocus(bool forward)
{
LoseKeyboardFocusCommand command = new LoseKeyboardFocusCommand();
command.ViewInstanceId = base.ViewInstanceId;
command.Forward = forward;
ISnapInPlatform snapInPlatform = base.SnapIn.SnapInPlatform;
if (snapInPlatform == null)
{
throw new InvalidOperationException(Microsoft.ManagementConsole.Internal.Utility.LoadResourceString(Microsoft.ManagementConsole.Internal.Strings.ExceptionCommonSnapInPlatformIsNull));
}
LoseKeyboardFocusCommandResult result = snapInPlatform.ProcessCommand(command) as LoseKeyboardFocusCommandResult;
if (result != null)
{
return result.FocusChanged;
}
return false;
}