Exemplo n.º 1
0
        public override IEnumerable<INodeFactory>  GetNodeChildren( IContext context )
        {
            var factories = new List<INodeFactory>();
            var props = _dte.get_Properties(_category, _page);
            foreach (EnvDTE.Property prop in props)
            {
                INodeFactory factory = null;
                try
                {
                    if (null != prop && null != prop.Object && prop.Object is FontsAndColorsItems)
                    {
                        FontsAndColorsItems fci = prop.Object as FontsAndColorsItems;
                        factory = new FontsAndColorsPropertyNodeFactory(_dte, fci);
                    }
                }
                catch
                {
                }

                if (null == factory)
                {
                    factory = new PropertyNodeFactory(prop);
                }

                factories.Add(factory);
            }
            return factories;
        }
Exemplo n.º 2
0
        public override IEnumerable <INodeFactory> GetNodeChildren(IContext context)
        {
            var factories = new List <INodeFactory>();
            var props     = _dte.get_Properties(_category, _page);

            foreach (EnvDTE.Property prop in props)
            {
                INodeFactory factory = null;
                try
                {
                    if (null != prop && null != prop.Object && prop.Object is FontsAndColorsItems)
                    {
                        FontsAndColorsItems fci = prop.Object as FontsAndColorsItems;
                        factory = new FontsAndColorsPropertyNodeFactory(_dte, fci);
                    }
                }
                catch
                {
                }

                if (null == factory)
                {
                    factory = new PropertyNodeFactory(prop);
                }

                factories.Add(factory);
            }
            return(factories);
        }