Microsoft.ManagementConsole.FormView.LoseKeyboardFocus C# (CSharp) Method

LoseKeyboardFocus() private method

private LoseKeyboardFocus ( bool forward ) : bool
forward bool
return bool
        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;
        }