private RedmineTask CreateTask(LoadedRedmineIssue issue, string format)
        {
            var task = new RedmineTask(issue, format);

            task.Navigate += (s, e) => Show(issue);

            return(task);
        }
        private void ViewIssue(LoadedRedmineIssue issue)
        {
            InitializeIssueViewerWindow();

            var issueWithJournals = LoadIssueWithJournals(issue.ConnectionSettings, issue.Id) ?? new RedmineIssue();

            issueViewerWindow.Show(new RedmineIssueViewModel(issueWithJournals)
            {
                WebBrowser = webBrowser
            });
        }
 private void Show(LoadedRedmineIssue issue)
 {
     if (Options.OpenTasksInWebBrowser)
     {
         webBrowser.Open(issue);
     }
     else
     {
         ViewIssue(issue);
     }
 }