public void Init(string category)
        {
            // Pull all questions to ask ...
            IEnumerable <Core.Cards.Card> cardsToUse;

            if (string.IsNullOrEmpty(category))
            {
                cardsToUse             = App.CardController.GetCardsToRepeat();
                m_supressLevelIncrease = false;
            }
            else
            {
                cardsToUse             = App.CardController.GetCardsByCategory(category);
                m_supressLevelIncrease = true;
            }

            m_data = new Questioning(cardsToUse);

            // ...and get the length to set.
            m_viewModel.QuestionsToAsk = m_data.CardStackSize;

            // Set the card index to a negative value and call new card to draw the first one.
            m_data.CurrentCardIndex = -1;
            GetNewCardData();
        }
Пример #2
0
    public Tree()
    {
        graph = new DirGraph <Questioning>();

        Questioning startQuestioning = new Questioning("Wie geht es Ihnen?", "Guten Tag", "Plagen Sie Existenzängste?", "Wie heißen Sie?");

        graph.AddNode(startQuestioning);


        Questioning vertrauen = new Questioning("Vertrauen Sie?");

        graph.AddNode(vertrauen);
    }