Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public CoupleCommand(ICouplingsBehavior couplingsBehavior, Button b)
        {
            this.couplingsBehavior = couplingsBehavior;

            this.b = b;
        }
Exemplo n.º 3
0
 public StartCommand(ICouplingsBehavior couplingsBehavior)
 {
     this.couplingsBehavior = couplingsBehavior;
 }