public void openIssue(JiraIssue issue) { WindowInstance.Visible = true; string key = getIssueTabKey(issue); if (!issueTabs.TabPages.ContainsKey(key)) { TabPage issueTab = new TabPage {Name = key, Text = issue.Key}; IssueDetailsPanel issuePanel = new IssueDetailsPanel(model, Solution, issue, issueTabs, issueTab); RecentlyViewedIssuesModel.Instance.add(issue); issueTab.Controls.Add(issuePanel); issuePanel.Dock = DockStyle.Fill; issueTabs.TabPages.Add(issueTab); } issueTabs.SelectTab(key); }
public void openIssue(JiraIssue issue) { WindowInstance.Visible = true; string key = getIssueTabKey(issue); if (!issueTabs.TabPages.ContainsKey(key)) { TabPage issueTab = new TabPage { Name = key, Text = issue.Key }; IssueDetailsPanel issuePanel = new IssueDetailsPanel(model, Solution, issue, issueTabs, issueTab); RecentlyViewedIssuesModel.Instance.add(issue); issueTab.Controls.Add(issuePanel); issuePanel.Dock = DockStyle.Fill; issueTabs.TabPages.Add(issueTab); } issueTabs.SelectTab(key); }