C# Class Starboard.View.ScoreboardControl

Main control displaying the scoreboard. Has built-in logic for handling transitions and animations.
Afficher le fichier Open project: ascendedguard/starboard-sc2

Private Properties

Свойство Type Description
AnnouncementTextCollectionChanged void
AnnouncementTimerElapsed void
ChangeAnnouncementText void
ChangeMatchupText void
Player1ColorChanged void
Player2ColorChanged void
ScoreboardDataContextChanged void
SubbarTextCollectionChanged void
SubbarTimerElapsed void

Méthodes publiques

Méthode Description
ScoreboardControl ( ) : System

Initializes a new instance of the ScoreboardControl class.

Private Methods

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

Method Details

ScoreboardControl() public méthode

Initializes a new instance of the ScoreboardControl class.
public ScoreboardControl ( ) : System
Résultat System