示例#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);
        }
示例#2
0
        public CoupleCommand(ICouplingsBehavior couplingsBehavior, Button b)
        {
            this.couplingsBehavior = couplingsBehavior;

            this.b = b;
        }
示例#3
0
 public StartCommand(ICouplingsBehavior couplingsBehavior)
 {
     this.couplingsBehavior = couplingsBehavior;
 }