C# Класс Starboard.View.ScoreboardControl

Main control displaying the scoreboard. Has built-in logic for handling transitions and animations.
Показать файл Открыть проект

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