public void ResetTimeOut(LQHsm sm) { switch (_callType) { case GQHSMCallType.TIMEOUT_TIMESPAN: if (Duration.TotalMilliseconds == 0.0) { sm.SetTimeOut(_name, Duration, _event); } break; case GQHSMCallType.TIMEOUT_TIMESPAN_TYPE: if (Duration.TotalMilliseconds == 0.0) { sm.SetTimeOut(_name, Duration, _event, _type); } break; } }
public void SetTimeOut(LQHsm sm) { switch (_callType) { case GQHSMCallType.TIMEOUT_TIMESPAN: sm.SetTimeOut(_name, Duration, _event); break; case GQHSMCallType.TIMEOUT_TIMESPAN_TYPE: sm.SetTimeOut(_name, Duration, _event, _type); break; case GQHSMCallType.TIMEOUT_DATETIME: sm.SetTimeOut(_name, At, _event); break; case GQHSMCallType.TIMEOUT_DATETIME_TYPE: sm.SetTimeOut(_name, At, _event, _type); break; } }