//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)); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(false); } Utility.SHOT_VALUE shot = (Utility.SHOT_VALUE)value; if (shot == Utility.SHOT_VALUE.Strike) { return("X"); } if (shot == Utility.SHOT_VALUE.Spare) { return("/"); } if (shot == Utility.SHOT_VALUE.Undefined) { return(String.Empty); } return(((int)shot).ToString()); }