コード例 #1
0
        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();
            }
        }
コード例 #2
0
 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();
 }