public void ResetWaybill() { var rounds = CurrentSession.RoundsOfSession; if (Waybill == null) { Waybill = new ObservableCollection <WhoWin>(); for (int i = 0; i < rounds.Count; i++) { Waybill.Add(new WhoWin() { Winner = (int)WinnerEnum.none }); } } else { for (int i = 0; i < rounds.Count; i++) { Waybill[i] = new WhoWin() { Winner = (int)WinnerEnum.none }; } } }
public void DisplayAllWaybill() { var rounds = CurrentSession.RoundsOfSession; for (int i = 0; i < rounds.Count; i++) { Waybill[i] = new WhoWin() { Winner = (int)rounds[i].Winner.Item1 }; } NoticeRoundOver(); }