Exemple #1
0
 public static string LaunchIssueBrowserForm(string parameters, string originalMessage)
 {
     var form = new IssuesBrowser(parameters, originalMessage);
     if (form.ShowDialog() != DialogResult.OK) return originalMessage;
     string result = form.AssociatedWorkItems;
     string comment = form.Comment.Trim();
     if (!string.IsNullOrEmpty(comment)) result += "\n\n" + comment;
     return result;
 }
Exemple #2
0
        public static string LaunchIssueBrowserForm(string parameters, string originalMessage)
        {
            var form = new IssuesBrowser(parameters, originalMessage);

            if (form.ShowDialog() != DialogResult.OK)
            {
                return(originalMessage);
            }
            string result  = form.AssociatedWorkItems;
            string comment = form.Comment.Trim();

            if (!string.IsNullOrEmpty(comment))
            {
                result += "\n\n" + comment;
            }
            return(result);
        }