public void ShrinkReportHands() { if (ReportHands == null) { return; } ReportHands = new ObservableCollection <ReportHandViewModel>(ReportHands.OrderByDescending(x => x.Time).Take(handsToStore)); }
public virtual void AddIndicator(ReportIndicators indicator) { if (indicator == null) { throw new ArgumentNullException(nameof(indicator)); } base.AddIndicator(indicator); ReportHands?.AddRange(indicator.ReportHands); Statistics?.AddRange(indicator.Statistics); rakeback += indicator.rakeback; }
protected virtual void AddReportHand(Playerstatistic statistic) { var reportHandViewModel = new ReportHandViewModel(statistic); ReportHands.Add(reportHandViewModel); }
public override void Clean() { base.Clean(); ReportHands.Clear(); }