Beispiel #1
0
        private void TrackHandValueSettings(HandValueSettings handValueSettings)
        {
            if (handValueSettings == null)
            {
                return;
            }

            disposableList.Add(
                handValueSettings.Changed.Subscribe(x => SetModified()));

            if (handValueSettings.SelectedFlushDraws != null)
            {
                disposableList.Add(
                    Observable.FromEventPattern <NotifyCollectionChangedEventHandler, NotifyCollectionChangedEventArgs>(
                        h => handValueSettings.SelectedFlushDraws.CollectionChanged += h,
                        h => handValueSettings.SelectedFlushDraws.CollectionChanged -= h).Subscribe(x => SetModified()));
            }

            if (handValueSettings.SelectedHv != null)
            {
                disposableList.Add(
                    Observable.FromEventPattern <NotifyCollectionChangedEventHandler, NotifyCollectionChangedEventArgs>(
                        h => handValueSettings.SelectedHv.CollectionChanged += h,
                        h => handValueSettings.SelectedHv.CollectionChanged -= h).Subscribe(x => SetModified()));
            }

            if (handValueSettings.SelectedStraighDraws != null)
            {
                disposableList.Add(
                    Observable.FromEventPattern <NotifyCollectionChangedEventHandler, NotifyCollectionChangedEventArgs>(
                        h => handValueSettings.SelectedStraighDraws.CollectionChanged += h,
                        h => handValueSettings.SelectedStraighDraws.CollectionChanged -= h).Subscribe(x => SetModified()));
            }
        }
Beispiel #2
0
 public bool Equals(HandValueSettings handValueSettings)
 {
     return(handValueSettings != null && handValueSettings.AnyHv == AnyHv &&
            handValueSettings.AnyFlushDraws == AnyFlushDraws &&
            handValueSettings.AnyStraightDraws == AnyStraightDraws &&
            CompareHelpers.CompareIntegerLists(handValueSettings.SelectedFlushDraws, SelectedFlushDraws) &&
            CompareHelpers.CompareIntegerLists(handValueSettings.SelectedHv, SelectedHv) &&
            CompareHelpers.CompareIntegerLists(handValueSettings.SelectedStraighDraws, SelectedStraighDraws));
 }
Beispiel #3
0
        public NoteSettingsObject()
        {
            Cash       = true;
            Tournament = true;

            FacingUnopened       = true;
            Facing2PlusLimpers   = true;
            FacingRaisersCallers = true;
            Facing1Limper        = true;
            Facing1Raiser        = true;
            Facing2Raisers       = true;

            TypeNoLimit      = true;
            TypePotLimit     = true;
            TypeLimit        = true;
            PlayersNo34      = true;
            PlayersNo56      = true;
            PlayersNoHeadsUp = true;
            PlayersNoMax     = true;
            PlayersNoMinVal  = 2;
            PlayersNoMaxVal  = 10;

            PositionBB     = true;
            PositionButton = true;
            PositionCutoff = true;
            PositionEarly  = true;
            PositionMiddle = true;
            PositionSB     = true;

            ExcludedStakes            = new List <Stake>();
            ExcludedCardsList         = new List <string>();
            SelectedFilters           = new ObservableCollection <FilterObject>();
            SelectedFiltersComparison = new ObservableCollection <FilterObject>();

            FlopHvSettings  = new HandValueSettings();
            TurnHvSettings  = new HandValueSettings();
            RiverHvSettings = new HandValueSettings();

            FlopTextureSettings  = new FlopTextureSettings();
            TurnTextureSettings  = new TurnTextureSettings();
            RiverTextureSettings = new RiverTextureSettings();

            FlopActions    = new ActionSettings();
            TurnActions    = new ActionSettings();
            RiverActions   = new ActionSettings();
            PreflopActions = new ActionSettings();
        }
Beispiel #4
0
        public HandValueSettings CopyTo(HandValueSettings existingSettings)
        {
            if (existingSettings == null)
            {
                return(null);
            }

            existingSettings.AnyHv            = AnyHv;
            existingSettings.AnyFlushDraws    = AnyFlushDraws;
            existingSettings.AnyStraightDraws = AnyStraightDraws;

            existingSettings.SelectedHv.Clear();
            existingSettings.SelectedHv.AddRange(SelectedHv);

            existingSettings.SelectedFlushDraws.Clear();
            existingSettings.SelectedFlushDraws.AddRange(SelectedFlushDraws);

            existingSettings.SelectedStraighDraws.Clear();
            existingSettings.SelectedStraighDraws.AddRange(SelectedStraighDraws);

            return(existingSettings);
        }