Exemplo n.º 1
0
        public void Couple(Button coupleTarget)
        {
            string target = coupleTarget.Content.ToString();

            int  index   = engine.GetIndexOfTarget(target);
            bool correct = engine.Check(engine.GetCouplings()[currentElement].Item1, target);

            update(correct, index);

            nextCoupling();
        }
Exemplo n.º 2
0
 private CouplingsComposite getComposite()
 {
     return(new CouplingsComposite(generateLeafs(getContent(engine.GetCouplings(), 1), "Match"), generateLeafs(getContent(engine.GetCouplings(), 2), "MatchTarget")));
 }