Exemplo n.º 1
0
        public static IEnumerable <Entry> GetIds(IServiceProvider serviceProvider)
        {
            var options = IdMsoPackage.GetOptions(serviceProvider);

            if (options.OfficeVersion == OfficeVersion.NotSpecified || options.OfficeApplication == OfficeApplication.NotSpecified)
            {
                OptionsPrompt.EditOptions(options);

                if (options.OfficeVersion == OfficeVersion.NotSpecified || options.OfficeApplication == OfficeApplication.NotSpecified)
                {
                    return(new List <Entry>());
                }
            }

            return(GetIdsFromCache(options.OfficeVersion, options.OfficeApplication).ToList());
        }
Exemplo n.º 2
0
        public static IEnumerable <Completion> GetMsoImages(IServiceProvider serviceProvider)
        {
            var options = IdMsoPackage.GetOptions(serviceProvider);

            if (options.OfficeVersion == OfficeVersion.NotSpecified)
            {
                OptionsPrompt.EditOptions(options);

                if (options.OfficeVersion == OfficeVersion.NotSpecified)
                {
                    return(new List <Completion>());
                }
            }

            return(GetMsoImagesFromCache(options.OfficeVersion));
        }