Пример #1
0
        public MainViewModel()
        {
            //cost in names//index equal to cost
            int[] manaCurves = ProbabilityCalculation.GetCurves();
            if (manaCurves == null)
            {
                return;
            }

            for (int i = 0; i < 11; i++)
            {
                int       currentCost = i;
                ManaCurve curvei      = new ManaCurve {
                    Amount = manaCurves[i], Name = currentCost.ToString()
                };
                ManaCurves.Add(curvei);
            }
        }
Пример #2
0
        public MainViewModel()
        {
            //cost in names//index equal to cost
            int[] manaCurves = ProbabilityCalculation.GetCurves();
            if (manaCurves == null)
                return;

            for (int i = 0; i < 11; i++)
            {
                int currentCost = i;
                ManaCurve curvei = new ManaCurve { Amount = manaCurves[i], Name = currentCost.ToString() };
                ManaCurves.Add(curvei);
            }
        }