Exemplo n.º 1
0
        private List <ResultsReturn> markPriceMoney(List <ResultsReturn> results)
        {
            Structs.Competition comp = myInterface.CompetitionCurrent;

            int         nrOfShooterWithPrice = (int)(((double)comp.PriceMoneyShooterPercent) / 100 * results.Count);
            int         totalAmount          = getTotalAmountOfMoney();
            CPriceMoney prices = new CPriceMoney(nrOfShooterWithPrice,
                                                 comp.ShooterFee1,
                                                 comp.FirstPrice,
                                                 totalAmount,
                                                 comp.ShooterFee1);

            int[] priceArray = prices.Calculate(((double)comp.PriceMoneyPercentToReturn) / 100);
            for (int i = 0; i < priceArray.Length & i < results.Count; i++)
            {
                results[i].PriceMoney = priceArray[i];
            }
            return(results);
        }
Exemplo n.º 2
0
		private List<ResultsReturn> markPriceMoney(List<ResultsReturn> results)
		{
			Structs.Competition comp = myInterface.CompetitionCurrent;

			int nrOfShooterWithPrice = (int)(((double)comp.PriceMoneyShooterPercent)/100 * results.Count);
			int totalAmount = getTotalAmountOfMoney();
			CPriceMoney prices = new CPriceMoney(nrOfShooterWithPrice,
				comp.ShooterFee1,
				comp.FirstPrice,
				totalAmount,
				comp.ShooterFee1);
			int[] priceArray = prices.Calculate(((double)comp.PriceMoneyPercentToReturn)/100);
			for (int i = 0; i < priceArray.Length & i < results.Count; i++)
			{
				results[i].PriceMoney = priceArray[i];
			}
			return results;
		}