public ArrayList GetUnusedGlobalPublishedAPINameList(IviSoftwareModule SoftwareModule, object CurrentName = null) { IviPublishedAPICollection GlobalPublishedAPIs = iviConfigStore.PublishedAPIs; ArrayList Names = new ArrayList(); foreach (IviPublishedAPI publishedAPI in GlobalPublishedAPIs) { if (!InList(SoftwareModule.PublishedAPIs, publishedAPI) && !Names.Contains(publishedAPI.Name)) { Names.Add(publishedAPI.Name); } } if (CurrentName != null && !Names.Contains(CurrentName)) { Names.Add(CurrentName); } Names.Sort(); return(Names); }