/// <summary> /// The actual renaming of the node, /// which will change the displayed text. /// It does create a few prompts for users /// so they have full control over the renaming process. /// /// @param[in] t the text that should be used to rename the node /// </summary> public void rename(string t) { stopRecognizer(); string newText = t; bool textToLong = newText.Length > 30; if (textToLong) { R.LongText(); } else { R.onResult(t); } }