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(); }
private CouplingsComposite getComposite() { return(new CouplingsComposite(generateLeafs(getContent(engine.GetCouplings(), 1), "Match"), generateLeafs(getContent(engine.GetCouplings(), 2), "MatchTarget"))); }