コード例 #1
0
ファイル: TextController.cs プロジェクト: nbsrujan/acat
 /// <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;
 }
コード例 #2
0
ファイル: PanelManager.cs プロジェクト: glwu/acat
 /// <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);
     }
 }
コード例 #3
0
ファイル: PanelManager.cs プロジェクト: nbsrujan/acat
 /// <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);
     }
 }