/// <summary> /// 创建[显示网页]窗体 /// </summary> /// <param name="url">需要加载的页面链接</param> public static void CreateWebpageForm(string url, string formTitle, bool sizable) { if (!Tools.IsRunningOnMono) { FormWebbrowser frm = new FormWebbrowser(url, formTitle, sizable); frm.ShowDialog(); } else { try { Process.Start(url); } catch { } } }
/// <summary> /// 创建[显示网页]窗体 /// </summary> /// <param name="url">需要加载的页面链接</param> public static void CreateWebpageForm(string url, string formTitle, bool sizable) { FormWebbrowser frm = new FormWebbrowser(url, formTitle, sizable); frm.ShowDialog(); }