Ejemplo n.º 1
0
 private void UpdateNecessarySubsystemsControl()
 {
     TrifectaFullSystem tr = new TrifectaFullSystem();
     tr.AmountToWin = AmountToWin;
     tr.SpecifySelectionsForTrifectasPosition(TrifectaFullSystem.Position.First, _firstPositionCtrl.Selections);
     tr.SpecifySelectionsForTrifectasPosition(TrifectaFullSystem.Position.Second, _secondPositionCtrl.Selections);
     tr.SpecifySelectionsForTrifectasPosition(TrifectaFullSystem.Position.Third, _thirdPositionCtrl.Selections);
     tr.CountAndDevelop(_oddsControl.GetOdds());
     List<TrifectaSubsystem> selectedCombos = _trifectaPayoutsControl.SelectedCombinations;
     TrifectaFullSystem tr2 = new TrifectaFullSystem(selectedCombos);
     _trifectaSubsystemsControl.LoadSubsystem(tr2.CondensedSubsystems);
 }
Ejemplo n.º 2
0
        void UpdateScreen()
        {
            TrifectaFullSystem tr = new TrifectaFullSystem();

            tr.AmountToWin = AmountToWin;

            tr.SpecifySelectionsForTrifectasPosition(TrifectaFullSystem.Position.First, _firstPositionCtrl.Selections);
            tr.SpecifySelectionsForTrifectasPosition(TrifectaFullSystem.Position.Second, _secondPositionCtrl.Selections);
            tr.SpecifySelectionsForTrifectasPosition(TrifectaFullSystem.Position.Third, _thirdPositionCtrl.Selections);

            string txt = "Total : " + tr.CountAndDevelop(_oddsControl.GetOdds()).ToString();

            txt += " (" + tr.DutchingRate.ToString() + ")";

            _txtboxAmountNeeded.Text = tr.TotalBet.ToString();

            _txtboxTotalNumberOfCombinations.Text = txt;
            _trifectaPayoutsControl.LoadCombinations(tr.RawSubsystems);
            _trifectaSubsystemsControl.LoadSubsystem(tr.CondensedSubsystems);

            _txtBoxROI.Text = tr.ROI.ToString();
        }
Ejemplo n.º 3
0
        private void LoadInvalidFromRawSubsystems()
        {
            TrifectaFullSystem t = new TrifectaFullSystem();

            foreach (TrifectaSubsystem sub in _rawSubsystems)
            {
                for(Position position = Position.First; position <= Position.Third; ++position)
                {
                    foreach (int i in sub.GetPositionAsList(position))
                    {
                        t.AddHorseToSpecificPosition(position, i);
                    }
                }
            }

            t.LoadInvalidSubsystemsOnly();

            _invalidsubsystems.Clear();

            foreach (TrifectaSubsystem s in t._invalidsubsystems)
            {
                _invalidsubsystems.Add(new TrifectaSubsystem(s));
                _rawSubsystems.Add(new TrifectaSubsystem(s));
                _condensedSubsystems.Add(new TrifectaSubsystem(s));

            }
        }