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); }; }
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); }; }