Beispiel #1
0
        private Action <System.Collections.Generic.List <string> > MethodToExecuteAfterCategoriesSelect(System.Collections.Generic.IDictionary <int, string> allKeywords)
        {
            return(selectedItemsNames =>
            {
                appSettings.Keywords.Clear();
                if (selectedItemsNames.Count != allKeywords.Count)
                {
                    foreach (var itemName in selectedItemsNames)
                    {
                        appSettings.Keywords.Add(allKeywords.First(k => k.Value == itemName));
                    }
                }

                SetAppSettings(appSettings);
                SetKeywordsSettings(appSettings);
            });
        }