Пример #1
0
 public static void QuitaOAbortaFaena(Tiket <TipoTrabajo> faenaHaAbortar)
 {
     if (feanasHaciendose.ContainsKey(faenaHaAbortar.IdUnico))
     {
         hilosFaenas.Remove(feanasHaciendose[faenaHaAbortar.IdUnico].Value.Key.Name);
         try {
             feanasHaciendose[faenaHaAbortar.IdUnico].Value.Key.Abort();
         } catch {
         }
         feanasHaciendose.Remove(faenaHaAbortar.IdUnico);
         faenaHaAbortar.DentroPool = false;
     }
     else if (faenasEstaticas.Contains(faenaHaAbortar))
     {
         faenasEstaticas.Remove(faenaHaAbortar);
         faenaHaAbortar.DentroPool = false;
     }
 }
Пример #2
0
 public bool Contains(T item)
 {
     return(pila.Contains(item));
 }