public IAnalyzablePokerPlayersFilterViewModel InitializeWith(IAnalyzablePokerPlayersFilter filter)
        {
            TotalPlayersFilter = new RangeFilterForSelectorsViewModel <int>(filter.TotalPlayersFilter, 2.To(10), "Total Players");

            PlayersInFlopFilter = new RangeFilterForSelectorsViewModel <int>(filter.PlayersInFlopFilter, 2.To(10), "Players in Flop");

            StrategicPositionFilter =
                new RangeFilterForSelectorsViewModel <StrategicPositions>(
                    filter.StrategicPositionFilter, StrategicPositions.SB.To(StrategicPositions.BU), "Position");

            TimeRangeFilter =
                new RangeFilterForSelectorsViewModel <int>(
                    filter.TimeRangeFilter,
                    new[] { 0, -10, -20, -30, -45, -60, -90, -120, -240, -480, -720 },
                    "Time Range",
                    new TimeRangeValueToDisplayConverter().Convert);

            AnteFilter     = new RangeFilterForInputsViewModel <double>(filter.AnteFilter, "Ante");
            BigBlindFilter = new RangeFilterForInputsViewModel <double>(filter.BigBlindFilter, "Big Blind");
            MFilter        = new RangeFilterForInputsViewModel <int>(filter.MFilter, "M");
            return(this);
        }
Пример #2
0
        public void _Init()
        {
            var rangeFilter = new GenericRangeFilter <int>().ActivateWith(MinValue, MaxValue);

            _sut = new RangeFilterForInputsViewModel <int>(rangeFilter, "someName");
        }