private void SendTextQuery() { ((IBioInfoUserIo) this).AddTextBioInfo(tbTextInput.Text); SaveTextToFile sttf = new SaveTextToFile(); sttf.SaveText(tbTextInput.Text); ScrollConversationToEnd(); tbTextInput.Text = ""; tbTextInput.Focus(); }
private void ResponceRecived(object sender, SpeechResponseEventArgs e) { Dispatcher.Invoke(() => { if (_commandMode) { return; } _partialResponces = AjustResponseText(_partialResponces); _fullResponces += " " + _partialResponces; SaveTextToFile sttf = new SaveTextToFile(); sttf.SaveText(_partialResponces); _tbCtrl.Text = _fullResponces; _tbCtrl.SelectionStart = _fullResponces.Length; _tbCtrl.SelectionLength = _fullResponces.Length + _partialResponces.Length + 1; _partialResponces = string.Empty; } ); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { SaveTextToFile sttf = new SaveTextToFile(); sttf.SaveFequencyDictionary(); }