Exemple #1
0
 /// <summary>
 /// Clears the text in the talk window
 /// </summary>
 public void Clear()
 {
     if (_talkWindow != null && Windows.GetVisible(_talkWindowForm))
     {
         KeyStateTracker.ClearAll();
         _talkWindow.Clear();
         AuditLog.Audit(new AuditEventTalkWindow("clear"));
         if (EvtTalkWindowCleared != null)
         {
             EvtTalkWindowCleared(this, EventArgs.Empty);
         }
     }
 }
Exemple #2
0
        /// <summary>
        /// Turns off the select mode.
        /// </summary>
        private void turnOffSelectMode()
        {
            KeyStateTracker.ClearAll();

            try
            {
                using (AgentContext context = Context.AppAgentMgr.ActiveContext())
                {
                    context.TextAgent().SetSelectMode(false);
                }
            }
            catch (Exception ex)
            {
                Log.Exception(ex);
            }
        }
Exemple #3
0
 /// <summary>
 /// Event handler called when the talk window is cleared
 /// </summary>
 /// <param name="sender">event sender</param>
 /// <param name="e">event args</param>
 private void AppTalkWindowManager_EvtTalkWindowCleared(object sender, EventArgs e)
 {
     TextController.OnTextCleared();
     KeyStateTracker.ClearAll();
 }