public Associations() { InitializeComponent(); associationBehavior = new AssociationControlerFactory(grid).GetControler(); SetGame(associationBehavior as Game); addUncoverHandler("A"); addUncoverHandler("B"); addUncoverHandler("C"); addUncoverHandler("D"); startCommand = new StartCommand(associationBehavior); quitCommand = new QuitCommand(associationBehavior); }
public StartCommand(IAssociationBehavior associationBehavior) { this.associationBehavior = associationBehavior; }
public UncoverCommand(IAssociationBehavior associationBehavior, Button button) { this.associationBehavior = associationBehavior; this.button = button; }