Ejemplo n.º 1
0
        private void RandomMix()
        {
            var vms = NavigationParameter.Terms;

            foreach (var vm in vms)
            {
                CardViewModel card = null;

                if (NextRandomBool())
                {
                    card = new CardViewModel()
                    {
                        FrontText = vm.TermText,
                        BackText  = vm.Definition,
                    };
                }
                else
                {
                    card = new CardViewModel()
                    {
                        FrontText = vm.Definition,
                        BackText  = vm.TermText,
                    };
                }

                InitCards.Add(card);
            }
        }
Ejemplo n.º 2
0
        private void DefinitionsFirst()
        {
            var vms = NavigationParameter.Terms;

            foreach (var vm in vms)
            {
                var card = new CardViewModel()
                {
                    FrontText = vm.Definition,
                    BackText  = vm.TermText,
                };

                InitCards.Add(card);
            }
        }