Exemplo n.º 1
0
        CustomBasicList <DiceInformation> IYahtzeeStyle.GetDiceList()
        {
            var firstList = _model.Cup !.DiceList.ToCustomBasicList();
            CustomBasicList <DiceInformation> output = new CustomBasicList <DiceInformation>();

            firstList.ForEach(items =>
            {
                DiceInformation thisDice = new DiceInformation();
                thisDice.Value           = items.Value;
                thisDice.Color           = items.DotColor.ToSKColor(); //i think
                output.Add(thisDice);
            });
            return(output);
        }
Exemplo n.º 2
0
        CustomBasicList <DiceInformation> IYahtzeeStyle.GetDiceList()
        {
            var firstList = _model.Cup !.DiceList.ToCustomBasicList();
            CustomBasicList <DiceInformation> output = new CustomBasicList <DiceInformation>();

            firstList.ForEach(items =>
            {
                DiceInformation dice = new DiceInformation();
                dice.Value           = items.Value;
                dice.Color           = SKColors.Black;
                output.Add(dice);
            });
            return(output);
        }