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);
}
}
}
}