/// <summary> /// Reads the suggestions from ExtendedMessageEventData /// </summary> /// <param name="messageEventArgs"></param> private void UpdateSuggestions(MessageEventArgs messageEventArgs) { CustomMessageData messageData = messageEventArgs.ExtendedData as CustomMessageData; foreach (var item in messageData.SuggestedChanges) { Suggestion suggestion = new Suggestion(messageEventArgs.FromLocation, messageEventArgs.UptoLocation, CreateSuggestionMarkup(item.Key)); _suggestionsList.Items.Add(suggestion); } if (_suggestionsList.Items.Count > 0) { _suggestionsList.SelectedIndex = 0; } }
/// <summary> /// Updates the problem description using the given message event arguments. /// </summary> /// <param name="messageEventArgs">message event arguments</param> private void UpdateProblemDescription(MessageEventArgs messageEventArgs) { CustomMessageData qaCheckerMessageData = (CustomMessageData)messageEventArgs.ExtendedData; _problemDescriptionTextBox.Text = qaCheckerMessageData.DetailedDescription; }