Example #1
0
        private void ChooseCategories()
        {
            try
            {
                string[] selected = Categories == null ? new string[0] : Categories.Split('|').Select(s => s.Trim()).ToArray();

                selected = service.ChooseOptions("Choose categories",
                                                 new AsyncLazy <string[]>(() => manager.GetAvailableCategories(BenchmarkDirectory, BenchmarkContainerUri)),
                                                 new Predicate <string>(c => selected.Contains(c)));
                if (selected != null)
                {
                    Categories = String.Join("|", selected);
                }
            }
            catch (Exception ex)
            {
                service.ShowError(ex);
            }
        }