C# Класс TRManager.Timetable

Provides a collection for Incident objects and monitors the time since the Incident arrived in the TR. The class fires several events to notify about changes.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Start ( ) : void

Starts the monitoring of the time.

Stop ( ) : void

Stops the monitoring of the time.

Timetable ( ) : System

Creates a new Timetable object and prepares the BackgroundWorker.

addIncident ( Incident incident ) : void

Adds an incident for monitoring.

releaseIncident ( Incident incident ) : void

Removes an incident from monitoring and writes the new leaveTime into the database.

startUp ( ) : void

Retrieves all Incidents which don't have a leaveTime for the Database.

Приватные методы

Метод Описание
bw_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Reacts to a timer update.

updateTimer ( object sender, DoWorkEventArgs e ) : void

Updates the time regularly.

Описание методов

Start() публичный Метод

Starts the monitoring of the time.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops the monitoring of the time.
public Stop ( ) : void
Результат void

Timetable() публичный Метод

Creates a new Timetable object and prepares the BackgroundWorker.
public Timetable ( ) : System
Результат System

addIncident() публичный Метод

Adds an incident for monitoring.
public addIncident ( Incident incident ) : void
incident Incident The Incident to add.
Результат void

releaseIncident() публичный Метод

Removes an incident from monitoring and writes the new leaveTime into the database.
public releaseIncident ( Incident incident ) : void
incident Incident The Incident to remove.
Результат void

startUp() публичный Метод

Retrieves all Incidents which don't have a leaveTime for the Database.
public startUp ( ) : void
Результат void