Esempio n. 1
0
        public async Task StartAsync(IDialogContext context)
        {
            quiz.CreateQuiz();
            score     = 0;
            Time      = 20;
            index     = 1;
            exitcheck = false;

            Timer timer = new Timer();

            timer.Interval = 1000;
            timer.Elapsed += (sender, e) => { OnTimedEventAsync(context, timer); };
            timer.Start();

            await showMessage(context);

            context.Wait(GameLoop);
        }
 public void CreateQuiz(IQuiz createQuiz)
 {
     createQuiz.CreateQuiz();
 }