public void AddTabWithUrl(DockPanel tabControl, string title, string url) { WebBrowserControl tp = null;//new WebBrowserControl(); if (!OpenBrowserDocuments.TryGetValue(title, out tp)) { tp = new WebBrowserControl(); tp.OpenPage(title, url); AddWindowToDockPanel(tp, tabControl, tp.Dock, DockState.Document, tp.IsFloat, null, 0); OpenBrowserDocuments.Add(title, tp); } else { tp.Activate(); } }
public void AddTabWithUrl(DockPanel tabControl, string title, string url) { WebBrowserControl tp = null;//new WebBrowserControl(); if (!OpenBrowserDocuments.TryGetValue(title, out tp)) { tp = new WebBrowserControl(); tp.OpenPage(title, url); AddWindowToDockPanel(tp, tabControl, tp.Dock, DockState.Document, tp.IsFloat, null, 0); OpenBrowserDocuments.Add(title, tp); } else tp.Activate(); }