예제 #1
0
 public static bool IsBlocked(BlockInterrupt.EType type)
 {
     return(BlockInterrupt.mInstances.Find((Predicate <BlockInterrupt>)(i =>
     {
         if (i.mType != type)
         {
             return i.mType == BlockInterrupt.EType.ALL;
         }
         return true;
     })) != null);
 }
예제 #2
0
    public static BlockInterrupt Create(BlockInterrupt.EType type)
    {
        BlockInterrupt blockInterrupt = new BlockInterrupt();

        if (blockInterrupt == null)
        {
            return((BlockInterrupt)null);
        }
        blockInterrupt.mActive = true;
        blockInterrupt.mType   = type;
        BlockInterrupt.mInstances.Add(blockInterrupt);
        return(blockInterrupt);
    }