/// <include file='doc\DesignerPackage.uex' path='docs/doc[@for="DesignerPackage.ResetDefaults"]/*' />
        /// <devdoc>
        ///     Resets the default tools on the toolbox for this package.
        /// </devdoc>
        public override void ResetDefaults(int pkgFlags)
        {
            ToolboxService ts = GetService(typeof(IToolboxService)) as ToolboxService;

            Debug.Assert(ts != null || !CompModSwitches.CommonDesignerServices.Enabled, "ToolboxService not found");

            switch (pkgFlags)
            {
            case __PKGRESETFLAGS.PKGRF_TOOLBOXITEMS:
                // this instructs the toolbox to add the default items

                if (ts != null)
                {
                    ts.ResetDefaultToolboxItems();
                }
                break;

            case __PKGRESETFLAGS.PKGRF_TOOLBOXSETUP:
                // this instructs the toolbox to update out of date items

                if (ts != null)
                {
                    ts.UpgradeToolboxItems();
                }
                break;
            }
        }