public void Show(ExceptionCheckCallback callback)
        {
            _DateTimeQuestionShown = DateTime.Now;
            ViewModelVisibility    = Visibility.Visible;
            //DispatchShown();
            var eventViewing = new History.Events.ViewingPhraseOnScreenEvent(Line.Phrase);

            History.HistoryPublisher.Ton.PublishEvent(eventViewing);
            var reviewingLineOrderEvent = new History.Events.ReviewingLineOrderEvent(Line, MultiLineText, GetReviewMethodId());

            HistoryPublisher.Ton.PublishEvent(reviewingLineOrderEvent);
            QuestionDurationInMilliseconds = int.Parse(StudyResources.DefaultTimeLineOrderQuestionInMilliseconds);
            AskQuestion(QuestionDurationInMilliseconds, (e) =>
            {
                if (e != null)
                {
                    callback(e);
                }
                else
                {
                    //WAIT FOR ALOTTED TIME FOR USER TO THINK ABOUT ANSWER.
                    System.Threading.Thread.Sleep(int.Parse(StudyResources.DefaultThinkAboutAnswerTime));
                    callback(null);
                }
            });
        }
        public void Show(ExceptionCheckCallback callback)
        {
            base.Show(callback);
            _DateTimeQuestionShown = DateTime.Now;
            var viewingEvent = new History.Events.ViewingPhraseOnScreenEvent(Question);

            HistoryPublisher.Ton.PublishEvent(viewingEvent);
        }
        public void Show(ExceptionCheckCallback callback)
        {
            base.Show(callback);
            _DateTimeQuestionShown = DateTime.Now;
            var viewingEvent = new History.Events.ViewingPhraseOnScreenEvent(Line.Phrase);

            HistoryPublisher.Ton.PublishEvent(viewingEvent);
            var reviewingLineOrderEvent = new History.Events.ReviewingLineOrderEvent(Line, MultiLineText, GetReviewMethodId());

            HistoryPublisher.Ton.PublishEvent(reviewingLineOrderEvent);
        }
        protected override async Task ShowAsyncImpl()
        {
            //PUBLISH EVENT THAT WE ARE VIEWING PHRASE ON SCREEN
            _DateTimeQuestionShown = DateTime.Now;
            ViewModelVisibility    = Visibility.Visible;
            var eventViewing = new History.Events.ViewingPhraseOnScreenEvent(Question);

            History.HistoryPublisher.Ton.PublishEvent(eventViewing);

            //ASK THE QUESTION
            await AskQuestionAsync(Question, Answer, QuestionDurationInMilliseconds);

            //SHOW THE ANSWER
            ShowAnswer();

            //WAIT FOR ALOTTED TIME FOR USER TO THINK ABOUT ANSWER.
            var timeToWait = int.Parse(StudyResources.DefaultThinkAboutAnswerTime);
            await CommonHelper.WaitAsync(timeToWait);
        }
 public void Show(ExceptionCheckCallback callback)
 {
   base.Show(callback);
   _DateTimeQuestionShown = DateTime.Now;
   var viewingEvent = new History.Events.ViewingPhraseOnScreenEvent(Line.Phrase);
   HistoryPublisher.Ton.PublishEvent(viewingEvent);
   var reviewingLineOrderEvent = new History.Events.ReviewingLineOrderEvent(Line, MultiLineText, GetReviewMethodId());
   HistoryPublisher.Ton.PublishEvent(reviewingLineOrderEvent);
 }
 public void Show(ExceptionCheckCallback callback)
 {
   base.Show(callback);
   _DateTimeQuestionShown = DateTime.Now;
   var viewingEvent = new History.Events.ViewingPhraseOnScreenEvent(Question);
   HistoryPublisher.Ton.PublishEvent(viewingEvent);
 }
 public void Show(ExceptionCheckCallback callback)
 {
   _DateTimeQuestionShown = DateTime.Now;
   ViewModelVisibility = Visibility.Visible;
   //DispatchShown();
   var eventViewing = new History.Events.ViewingPhraseOnScreenEvent(Line.Phrase);
   History.HistoryPublisher.Ton.PublishEvent(eventViewing);
   var reviewingLineOrderEvent = new History.Events.ReviewingLineOrderEvent(Line, MultiLineText, GetReviewMethodId());
   HistoryPublisher.Ton.PublishEvent(reviewingLineOrderEvent);
   QuestionDurationInMilliseconds = int.Parse(StudyResources.DefaultTimeLineOrderQuestionInMilliseconds);
   AskQuestion(QuestionDurationInMilliseconds, (e) =>
     {
       if (e != null)
       {
         callback(e);
       }
       else
       {
         //WAIT FOR ALOTTED TIME FOR USER TO THINK ABOUT ANSWER.
         System.Threading.Thread.Sleep(int.Parse(StudyResources.DefaultThinkAboutAnswerTime));
         callback(null);
       }
     });
 }
    protected override async Task ShowAsyncImpl()
    {
      //PUBLISH EVENT THAT WE ARE VIEWING PHRASE ON SCREEN
      _DateTimeQuestionShown = DateTime.Now;
      ViewModelVisibility = Visibility.Visible;
      var eventViewing = new History.Events.ViewingPhraseOnScreenEvent(Question);
      History.HistoryPublisher.Ton.PublishEvent(eventViewing);

      //ASK THE QUESTION
      await AskQuestionAsync(Question, Answer, QuestionDurationInMilliseconds);

      //SHOW THE ANSWER
      ShowAnswer();

      //WAIT FOR ALOTTED TIME FOR USER TO THINK ABOUT ANSWER.
      var timeToWait = int.Parse(StudyResources.DefaultThinkAboutAnswerTime);
      await CommonHelper.WaitAsync(timeToWait);
    }