コード例 #1
0
        public DebugQuestionController(QuestionScope scope,ClientDebugManagerService clientDebugManagerService)
        {
            myScope = scope;
            myClientDebugManagerService = clientDebugManagerService;

            myScope.Model.AnswerQuestion = AnswerQuestionFn;
            myScope.Visible = false;

            myScope.OnReady += () =>
                               {
                                   myScope.SwingAway(SwingDirection.TopLeft, true, null);
                                   myScope.SwingBack(null);
                               };
        }
コード例 #2
0
        public QuestionController(QuestionScope scope, ClientGameManagerService clientGameManagerService)
        {
            myScope = scope;
            myClientGameManagerService = clientGameManagerService;

            myScope.Model.WindowClosed = () => { Window.Alert("woooo"); };

            myScope.Model.AnswerQuestion = AnswerQuestionFn;
            myScope.Visible = false;

            myScope.OnReady += () =>
                               {
                                   myScope.SwingAway(SwingDirection.TopLeft, true, null);
                                   myScope.SwingBack(null);
                               };
        }