C# Класс CTCOfficeGUI.TrainGraphic

Показать файл Открыть проект Примеры использования класса

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

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

Causes the graphic to "blink" to show as selected

SetScale ( double scale ) : bool

Sets the scale of the train relative to the screen

Scale is represented as a ratio of the original size to the new size

StopBlinking ( ) : void

Causes the graphic to stop blinking

TrainGraphic ( ITrain train ) : System

Default constructor

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

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

Catch and rethrow the click event (necessary for some reason)

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

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

Causes the graphic to "blink" to show as selected
public Blink ( ) : void
Результат void

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

Sets the scale of the train relative to the screen
Scale is represented as a ratio of the original size to the new size
public SetScale ( double scale ) : bool
scale double Scale to display
Результат bool

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

Causes the graphic to stop blinking
public StopBlinking ( ) : void
Результат void

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

Default constructor
public TrainGraphic ( ITrain train ) : System
train ITrain
Результат System