コード例 #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);
            }
        }