private void UpdateStatus()
 {
     foreach (var rec in ProgramService.RecipeService.Items)
     {
         if (rec.IsAbandoned == false)
         {
             if (rec.TestRecords.All(o => o.Status == TestStatus.Abandoned))
             {
                 rec.IsAbandoned = true;
                 ProgramService.RecipeService.SuperUpdate(rec);
             }
         }
     }
     foreach (var pro in ProgramService.Items)
     {
         if (pro.IsInvalid == false)
         {
             if (pro.Recipes.All(o => o.IsAbandoned == true))
             {
                 pro.IsInvalid = true;
                 ProgramService.SuperUpdate(pro);
             }
         }
     }
 }