/// <summary> /// 调用系统的“整理收藏夹” /// </summary> public static void OrganizeFavorites() { ShellUIHelper helper = new ShellUIHelper(); object o = null; helper.ShowBrowserUI("OrganizeFavorites", ref o); }
private void 整理收藏夹ToolStripMenuItem_Click(object sender, EventArgs e) { ShellUIHelper ui = new ShellUIHelper(); object path = null; ui.ShowBrowserUI("OrganizeFavorites", ref path); }
private void 添加到收藏夹ToolStripMenuItem_Click(object sender, EventArgs e) { ShellUIHelper ui = new ShellUIHelper(); object title = WebBrowserProperty.frontProperty.siteTitle; ui.AddFavorite(WebBrowserProperty.frontProperty.webBrowser.LocationURL, ref title); }
/// <summary> /// Execute the command /// </summary> public override void Execute() { // determine the current URL and Title string url = Browser.LocationURL; object title = Browser.LocationName; // add to favorites ShellUIHelper.AddFavorite(url, ref title); }
/// <summary> /// Execute the command /// </summary> public override void Execute() { // constant for calling Languages dialog const string LANGUAGE_DIALOG = "LanguageDialog"; // call organize favorites dialog object objNull = null; ShellUIHelper.ShowBrowserUI(LANGUAGE_DIALOG, ref objNull); }
/// <summary> /// Execute the command /// </summary> public override void Execute() { // constant for calling Organize Favorites dialog const string ORGANIZE_FAVORITES = "OrganizeFavorites"; // call organize favorites dialog object objNull = null; ShellUIHelper.ShowBrowserUI(ORGANIZE_FAVORITES, ref objNull); }
/// <summary> /// 调用系统的“添加到收藏夹” /// </summary> public static void AddFavorite(string url, string title) { ShellUIHelper helper = new ShellUIHelper(); if (string.IsNullOrEmpty(title)) { title = ABOUT_BLANK; } object o = title; helper.AddFavorite(url, ref o); //调用添加到收藏夹对话框 }