protected virtual void OnMessageTextViewPersonClicked(object sender, MessageTextViewPersonClickedEventArgs e) { Trace.Call(sender, e); var entry = Frontend.MainWindow.Entry; var text = entry.Text; var match = Regex.Match(text, "^[^ ]+: "); if (match.Success) { // removing existing nick text = text.Substring(match.Length); } text = String.Format("{0}: {1}", e.IdentityName, text); entry.Text = text; entry.HasFocus = true; }
protected virtual void OnMessageTextViewPersonClicked(object sender, MessageTextViewPersonClickedEventArgs e) { Trace.Call(sender, e); var entry = Frontend.MainWindow.Entry; var text = entry.Text; var match = Regex.Match(text, "^[^ ]+: "); if (match.Success) { // removing existing nick text = text.Substring(match.Length); } text = String.Format("{0}: {1}", e.IdentityName, text); entry.Text = text; entry.HasFocus = true; }