示例#1
0
 public static BrowActionController GetInstance()
 {
     if (Instance == null)
     {
         Instance = new BrowActionController();
     }
     return(Instance);
 }
示例#2
0
 /// <summary>
 /// if you want to add a new tabcontrolpage for a new WebPage,this method help you
 /// </summary>
 /// <param name="url"></param>
 /// <returns></returns>
 public static UIs.ucBrowserView AddNewWebView(string url = "about:blank")
 {
     UIs.ucBrowserView browserView = new UIs.ucBrowserView(url);
     if (browserView != null)
     {
         _browserViewlist.Add(browserView);
         BrowActionController.GetInstance().OnBrowStaChanged(new BrowserStaChangeArgs(BrowSTACommand.NewWindow, "", browserView));
     }
     return(browserView);
 }