/// <summary> /// Handler for the event that is raised when the focus in the /// application window changes. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AppAgentMgr_EvtFocusChanged(object sender, FocusChangedEventArgs e) { _lastAction = LastAction.Unknown; _autoCompleteCaretPos = -1; _beforeAutoCompleteCaretPos = -1; _autocompleteStartOffset = -1; _autoCompletePartialWord = String.Empty; }
/// <summary> /// Foreground window focus changed. Let the active /// scanner know about this /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AppAgent_EvtFocusChanged(object sender, FocusChangedEventArgs e) { var panel = getTopOfStack().GetCurrentPanel(); if (panel is IScannerPanel) { ((IScannerPanel)panel).OnFocusChanged(e.WindowActivityInfo); } }
/// <summary> /// Foreground window focus changed. Let the active /// scanner know about this /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AppAgent_EvtFocusChanged(object sender, FocusChangedEventArgs e) { if (_currentPanel is IScannerPanel) { ((IScannerPanel)_currentPanel).OnFocusChanged(e.WindowActivityInfo); } }