Exemplo n.º 1
0
 public Timer(TriggerType type)
 {
     if (!type.IsValidValue() || type == TriggerType.Unknown)
     {
         throw new ArgumentException("Not a valid trigger type", "type");
     }
     Util.GetBPSOrException();
     if (navigator_invoke_timer_registration_create(out handle, type) != BPS.BPS_SUCCESS)
     {
         Util.ThrowExceptionForLastErrno();
     }
 }
Exemplo n.º 2
0
 public Timer(TriggerType type)
 {
     if (!type.IsValidValue() || type == TriggerType.Unknown)
     {
         throw new ArgumentException("Not a valid trigger type", "type");
     }
     Util.GetBPSOrException();
     if (navigator_invoke_timer_registration_create(out handle, type) != BPS.BPS_SUCCESS)
     {
         Util.ThrowExceptionForLastErrno();
     }
 }