public Couplings() { InitializeComponent(); couplingsBehavior = new CouplingsControlerFactory(CouplingsGrid).GetControler(); SetGame(couplingsBehavior as Game); foreach (Button b in Finder.FindVisualChildrenWithTag <Button>(CouplingsGrid, "MatchTarget")) { b.Click += coupleHandler; } startCommand = new StartCommand(couplingsBehavior); }
public CoupleCommand(ICouplingsBehavior couplingsBehavior, Button b) { this.couplingsBehavior = couplingsBehavior; this.b = b; }
public StartCommand(ICouplingsBehavior couplingsBehavior) { this.couplingsBehavior = couplingsBehavior; }