Esempio n. 1
0
        /// <summary>
        /// 调用系统的“整理收藏夹”
        /// </summary>
        public static void OrganizeFavorites()
        {
            ShellUIHelper helper = new ShellUIHelper();
            object        o      = null;

            helper.ShowBrowserUI("OrganizeFavorites", ref o);
        }
Esempio n. 2
0
        private void 整理收藏夹ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShellUIHelper ui   = new ShellUIHelper();
            object        path = null;

            ui.ShowBrowserUI("OrganizeFavorites", ref path);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        /// <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);
        }
Esempio n. 5
0
        /// <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);
        }
Esempio n. 6
0
        /// <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);
        }
Esempio n. 7
0
        /// <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); //调用添加到收藏夹对话框
        }