public void InitializeCultureCollections(bool reloadAllCultures = false) { if (reloadAllCultures) { allCultures = SmartCultureInfoEx.Deserialize(LocalizationWorkspace.CultureInfoCollectionFilePath()); } availableCultures = LanguageHandlerEditor.CheckAndSaveAvailableLanguages(allCultures); nonAvailableCultures = LanguageHandlerEditor.GetNonAvailableLanguages(allCultures); availableCultures.cultureInfos.Sort((a, b) => { return(a.englishName.CompareTo(b.englishName)); }); nonAvailableCultures.cultureInfos.Sort((a, b) => { return(a.englishName.CompareTo(b.englishName)); }); availableCultures.cultureInfos.Insert(0, new SmartCultureInfo(string.Empty, "ROOT", "ROOT", false)); languageListAdaptor = new SmartCultureInfoListAdaptor(availableCultures.cultureInfos, DrawAvailableLanguageItem, 28); languageListContextMenu = new SmartCultureInfoMenuControl(); createListAdaptor = new CreateLanguageListAdaptor(nonAvailableCultures.cultureInfos, DrawCreateLanguageItem, 15); createListContextMenu = new CreateLanguageMenuControl(); settingsAdaptor = new SettingsListAdaptor(settingsList, DrawSettingsItem, 110); settingsContextMenu = new SettingsMenuControl(); }