Class TimerEx
Extensión de la clase TimerEx. provee de toda la funcionalidad previamente disponible, e incluye algunas extensiones útiles.
Inherited Members
Namespace: TheXDS.MCART.Types
Assembly: MCART.dll
Syntax
public class TimerEx : Timer, IComponent, ISupportInitialize, IDisposableEx, IDisposable
Constructors
| Edit this page View SourceTimerEx()
Initializes a new instance of the TimerEx.
Declaration
public TimerEx()
TimerEx(double)
Initializes a new instance of the TimerEx y establece la propiedad Interval en el número de milisegundos especificado.
Declaration
public TimerEx(double interval)
Parameters
Type | Name | Description |
---|---|---|
double | interval | Tiempo, en milisegundos, entre eventos. Este valor debe ser mayor que cero y menor que MaxValue. |
Properties
| Edit this page View SourceEnabled
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsDisposed
Obtiene un valor que indica si este objeto ha sido desechado.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
bool |
StartTime
Indica el momento de inicio de este TimerEx.
Declaration
public DateTime? StartTime { get; }
Property Value
Type | Description |
---|---|
DateTime? |
TimeLeft
Indica la cantidad de tiempo disponible antes de cumplir con el intervalo establecido en Interval.
Declaration
public TimeSpan? TimeLeft { get; }
Property Value
Type | Description |
---|---|
TimeSpan? |
Methods
| Edit this page View SourceReset()
Reinicia este TimerEx.
Declaration
public void Reset()
Start()
Declaration
public void Start()
Stop()
Declaration
public void Stop()