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(); }
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); }