public void GetOurEntities() { logger.Info("GetOurEntities "); CleaningCats = db.GetCats(out DBerrormsg); if (DBerrormsg.Count() > 2) { // MessageBox.Show("Cound not open Categories DataBase"); return; } // Items = db.GetItems(); CleaningBins = db.GetBins(); unknownCat = CleaningCats.Where(c => c.Name.StartsWith("Unclassified")).Single(); }
public void GetOurEntities() { logger.Info("GetOurEntities "); // try // { CleaningCats = db.GetBCSCats(out DBerrormsg); // } if (DBerrormsg.Count() > 2) { return; } // Items = db.GetItems(); CleaningBins = db.GetBins(); unknownCat = CleaningCats.Where(c => c.Name.StartsWith("Unclassified")).Single(); }
public Category getCat(string name) { return(CleaningCats.Where(i => i.Name == name).SingleOrDefault()); }