//public override SHOT_VALUE GetShotScore(SHOT shot = SHOT.First) //{ // throw new NotImplementedException(); //} //public override (int score, SCORE_STATE state) GetScore() //{ // throw new NotImplementedException(); //} private void UpdateShots(object sender, PropertyChangedEventArgs args) { Game.SHOT_VALUE first = this._frame.Shots[0]; this.First = Utility.ModelToViewModelShots[first]; RaisePropertyChanged(nameof(First)); }
private void SetShot(int index, Game.SHOT_VALUE value) { if (value == Game.SHOT_VALUE.Spare) { // TODO: Should this throw an exception? return; } this.SetProperty <Game.SHOT_VALUE>(ref this._shots[index], value); }
public OneShotFrame(PropertyChangedEventHandler handler) { this.PropertyChanged += handler; Game.SHOT_VALUE[] shots = new Game.SHOT_VALUE[] { Game.SHOT_VALUE.Undefined, }; this.SetProperty <Game.SHOT_VALUE[]>(ref this._shots, shots); }
private void SetShot(int index, Game.SHOT_VALUE value) { this.SetProperty <Game.SHOT_VALUE>(ref this._shots[index], value); }