C# Class CTCOfficeGUI.TrainGraphic

Datei anzeigen Open project: johnselker/Bazinga1186 Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
OnPictureBoxClicked ( object sender, EventArgs e ) : void

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

Method Details

Blink() public method

Causes the graphic to "blink" to show as selected
public Blink ( ) : void
return void

SetScale() public method

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
return bool

StopBlinking() public method

Causes the graphic to stop blinking
public StopBlinking ( ) : void
return void

TrainGraphic() public method

Default constructor
public TrainGraphic ( ITrain train ) : System
train ITrain
return System