Пример #1
0
        public WhoKnowsKnows()
        {
            InitializeComponent();

            foreach (Button element in Finder.FindVisualChildrenWithTag <Button>(WKKGrid, "QuestionButton"))
            {
                element.Click += submitHandler;
            }

            wkkBehavior = new WKKControlerFactory(WKKGrid).GetControler();

            SetGame(wkkBehavior as Game);

            startCommand = new StartCommand(wkkBehavior);
        }
Пример #2
0
 public StartCommand(IWKKBehavior wkkBehavior)
 {
     this.wkkBehavior = wkkBehavior;
 }
Пример #3
0
        public SubmitCommand(IWKKBehavior wkkBehavior, string answer)
        {
            this.wkkBehavior = wkkBehavior;

            this.answer = answer;
        }