Exemplo n.º 1
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);
     }
 }
Exemplo n.º 2
0
 public void CategoryCreateCheckBoxList()
 {
     CategoryObjects = new ObservableCollection <CheckedListItem>();
     foreach (var vData in _Category.OrderBy(x => x.Name))
     {
         CheckedListItem vRecord = new CheckedListItem
         {
             Id        = vData.Id.ToString(),
             Name      = vData.Name,
             IsChecked = true
         };
         CategoryObjects.Add(vRecord);
     }
 }