C# 클래스 CTCOfficeGUI.TrainGraphic

파일 보기 프로젝트 열기: johnselker/Bazinga1186 1 사용 예제들

공개 메소드들

메소드 설명
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