/// <summary> /// Handles the user request to add a comment to an Issue /// </summary> /// <param name="selectedIssue">The <c>Issue</c> entity to which the comment will be added</param> internal void HandleAddCommentToIssueRequest(Issue selectedIssue) { if (selectedIssue != null) { try{ IssueCommentDialog dialog = new IssueCommentDialog(); dialog.ShowDialog(); string commentText = dialog.Comment; if (dialog.Comment != String.Empty) { Proxy.AddCommentToIssue(selectedIssue, commentText); } else { DisplayErrorMessage("No text has been entered", "Adding a Comment"); } dialog.Dispose(); } catch (Exception e) { this.HandleException(e); } } else { DisplayErrorMessage("There's no Issue selected", "Error adding a commento to an Issue"); } }