Class TimerEx
Extension of the TimerEx class. Provides all previously available functionality, and includes some useful extensions.
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 and sets the Interval property to the specified number of milliseconds.
Declaration
public TimerEx(double interval)
Parameters
| Type | Name | Description |
|---|---|---|
| double | interval | Time, in milliseconds, between events. This value must be greater than zero and less than MaxValue. |
Properties
| Edit this page View SourceEnabled
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsDisposed
Gets a value indicating whether this object has been disposed.
Declaration
public bool IsDisposed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
StartTime
Indicates the start time of this TimerEx.
Declaration
public DateTime? StartTime { get; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
TimeLeft
Indicates the amount of time remaining before meeting the interval set in Interval.
Declaration
public TimeSpan? TimeLeft { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan? |
Methods
| Edit this page View SourceReset()
Resets this TimerEx.
Declaration
public void Reset()
Start()
Declaration
public void Start()
Stop()
Declaration
public void Stop()