C# Class CTCOfficeGUI.TrainGraphic

Afficher le fichier Open project: johnselker/Bazinga1186 Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
OnPictureBoxClicked ( object sender, EventArgs e ) : void

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

Method Details

Blink() public méthode

Causes the graphic to "blink" to show as selected
public Blink ( ) : void
Résultat void

SetScale() public méthode

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
Résultat bool

StopBlinking() public méthode

Causes the graphic to stop blinking
public StopBlinking ( ) : void
Résultat void

TrainGraphic() public méthode

Default constructor
public TrainGraphic ( ITrain train ) : System
train ITrain
Résultat System