public void SetMotifAvailable(Motif motif)
 {
     if (this.worker != null)
     {
         worker.SetMotifAvailable(motif);
     }
 }
 public void SetMotifAvailable(Motif motif)
 {
     foreach (Job job in JobList)
     {
         if (job.Status == JobStatus.JS_PREPARE_RESOURCES)
         {
             job.SetMotifAvailable(motif);
         }
     }
 }
        public bool IsMotifInTransit(Motif motif)
        {
            foreach (Job job in JobList)
            {
                if (job.MotifList.Any(item => item.ID == motif.ID && item.IsInTransit))
                {
                    return(true);
                }
            }

            return(false);
        }