C# 클래스 Starboard.View.ScoreboardControl

Main control displaying the scoreboard. Has built-in logic for handling transitions and animations.
파일 보기 프로젝트 열기: ascendedguard/starboard-sc2

Private Properties

프로퍼티 타입 설명
AnnouncementTextCollectionChanged void
AnnouncementTimerElapsed void
ChangeAnnouncementText void
ChangeMatchupText void
Player1ColorChanged void
Player2ColorChanged void
ScoreboardDataContextChanged void
SubbarTextCollectionChanged void
SubbarTimerElapsed void

공개 메소드들

메소드 설명
ScoreboardControl ( ) : System

Initializes a new instance of the ScoreboardControl class.

비공개 메소드들

메소드 설명
AnnouncementTextCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Handles logic when the number of announcement messages has changed. Starts/stops appropriate timers automatically.

AnnouncementTimerElapsed ( object sender, EventArgs e ) : void

Finds the next announcement and setups the proper binding when the announcement timer has elapsed.

ChangeAnnouncementText ( BindingBase newBinding ) : void

Changes the object which the announcement text is bound, and animates the transition.

ChangeMatchupText ( BindingBase newBinding ) : void

Changes the matchup text to the bind specified.

Player1ColorChanged ( Player player ) : void

Creates and starts a proper ColorAnimation when the color changes for Player 1.

Player2ColorChanged ( Player player ) : void

Creates and starts a proper ColorAnimation when the color changes for Player 2.

ScoreboardDataContextChanged ( object sender, DependencyPropertyChangedEventArgs e ) : void

Implements property observers when a new viewmodel is applied.

SubbarTextCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Handles logic when the number of subbar messages has changed. Starts/stops appropriate timers automatically.

SubbarTimerElapsed ( object sender, EventArgs e ) : void

Increments the subbar text when the given timer elapses, and disposes of the timer object.

메소드 상세

ScoreboardControl() 공개 메소드

Initializes a new instance of the ScoreboardControl class.
public ScoreboardControl ( ) : System
리턴 System