Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 public Category getCat(string name)
 {
     return(CleaningCats.Where(i => i.Name == name).SingleOrDefault());
 }