Class TickGenerator
Tick generator which provides ticking with the specified interval.
Implements
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public abstract class TickGenerator : IDisposable
Properties
IsRunning
Gets a value indicating whether the current tick generator is currently running or not.
Declaration
protected bool IsRunning { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Dispose()
Releases all resources used by the current tick generator.
Declaration
public virtual void Dispose()
Dispose(bool)
Releases all resources used by the current tick generator.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
GenerateTick()
Generates a tick firing the TickGenerated event.
Declaration
protected void GenerateTick()
Start(TimeSpan)
Starts a tick generator.
Declaration
protected abstract void Start(TimeSpan interval)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | interval | Interval between ticks. |
Stop()
Stops a tick generator.
Declaration
protected abstract void Stop()
Events
TickGenerated
Occurs on tick generator's tick.
Declaration
public event EventHandler TickGenerated
Event Type
Type | Description |
---|---|
EventHandler |