/// <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); } } }
/// <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); } }
/// <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(); }