Beispiel #1
0
        List <ElementId> CategoriesList()
        {
            List <ElementId> vResult = new List <ElementId>();

            foreach (var vData in _Category)
            {
                if (CategoryObjects.Where(p => p.Id == vData.Id.ToString() && p.IsChecked == true).Count() > 0)
                {
                    vResult.Add(vData.Id);
                }
            }
            return(vResult);
        }
Beispiel #2
0
 private void AllIndustry_Click(object sender, RoutedEventArgs e)
 {
     CategoryObjects.Clear();
     foreach (var vData in _Category.OrderBy(x => x.Name))
     {
         CheckedListItem vRecord = new CheckedListItem {
             Id        = vData.Id.ToString(),
             Name      = vData.Name,
             IsChecked = allIndustry.IsChecked ?? false
         };
         LoadInfo(false);
         CategoryObjects.Add(vRecord);
     }
 }