Example #1
0
        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);
        }
Example #2
0
 public StartCommand(IAssociationBehavior associationBehavior)
 {
     this.associationBehavior = associationBehavior;
 }
Example #3
0
        public UncoverCommand(IAssociationBehavior associationBehavior, Button button)
        {
            this.associationBehavior = associationBehavior;

            this.button = button;
        }