AddinFramework.Util.Search.LoadOtherMdgSearches C# (CSharp) Метод

LoadOtherMdgSearches() статический приватный Метод

loads the MDG scripts from the locations added from MDG Technologies|Advanced. these locations are stored as a comma separated string in the registry a location can either be a directory, or an URL
static private LoadOtherMdgSearches ( EA rep ) : void
rep EA
Результат void
        static void LoadOtherMdgSearches(EA.Repository rep)
        {

                //read the registry key to find the locations
                var pathList = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS", "MDGTechnology PathList", null) as string;
                if (pathList != null)
                {
                    string[] mdgPaths = pathList.Split(',');
                    foreach (string mdgPath in mdgPaths)
                    {
                        if (mdgPath.Trim() == "") continue;
                        //figure out it we have a folder path or an URL
                        if (mdgPath.StartsWith("http", StringComparison.InvariantCultureIgnoreCase))
                        {
                            //URL
                            LoadMdgSearchFromUrl(rep, mdgPath);
                        }
                        else
                        {
                            //directory
                            LoadSearchFromFolder(rep, mdgPath);
                        }
                    }
                }

        }