C# Класс CTCOfficeGUI.InfoPanel

Class for displaying text information to the user
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект

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

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

Hides the labels

InfoPanel ( ) : System

Primary constructor for the info panel

SetInfo ( string name, string>.Dictionary information ) : void

Sets the information to display

SetTrackBlockInfo ( TrackBlock block ) : void

Sets the text information for a track block

SetTrainInfo ( ITrain train ) : void

Sets the text information for a train

SetTrainYardInfo ( TrackBlock b ) : void

Displays info about the train yard

UpdateDisplay ( List blocks, List trains ) : void

Updates the display

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

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

Adjusts the location of the field labels to align nicely

GetBlockFailureStateString ( TrackBlock block ) : string>.KeyValuePair

Gets the failure state string for the given track block

There are 8 different possible strings, so this chunk of code gets ugly

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

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

Hides the labels
public ClearInfo ( ) : void
Результат void

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

Primary constructor for the info panel
public InfoPanel ( ) : System
Результат System

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

Sets the information to display
public SetInfo ( string name, string>.Dictionary information ) : void
name string
information string>.Dictionary Dictionary of field:value information
Результат void

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

Sets the text information for a track block
public SetTrackBlockInfo ( TrackBlock block ) : void
block TrackBlock Track block
Результат void

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

Sets the text information for a train
public SetTrainInfo ( ITrain train ) : void
train ITrain Train
Результат void

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

Displays info about the train yard
public SetTrainYardInfo ( TrackBlock b ) : void
b TrackBlock Track block
Результат void

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

Updates the display
public UpdateDisplay ( List blocks, List trains ) : void
blocks List List of track blocks
trains List List of trains
Результат void