Ejemplo n.º 1
0
        private async void ShowWrongAnswerWarning()
        {
            var wrongAnswerWarning = new MessageDialog("Your answer is wrong");

            var retryCommand = new UICommand("Retry")
            {
                Id = 0
            };
            var showAnswerCommand = new UICommand("Show answer")
            {
                Id = 1
            };

            wrongAnswerWarning.Commands.Add(retryCommand);
            wrongAnswerWarning.Commands.Add(showAnswerCommand);

            var result = await wrongAnswerWarning.ShowAsync();

            if (result == retryCommand)
            {
                Clear();
            }
            if (result == showAnswerCommand)
            {
                InteractionTools.ShowTemplateImage(this.TemplateImage, this.currentImageTemplate);
            }
        }
Ejemplo n.º 2
0
        private void ShowVisualFeedback()
        {
            InteractionTools.ShowTemplateImage(TemplateImage, currentImageTemplate);

            StrokeCountFeedbackTextBlock.Text        = "Location: " + visAssessor.LocationFeedback + "\n";
            StrokeOrderFeedbackTextBlock.Text        = "Shape: " + visAssessor.ShapeFeedback + "\n";
            StrokeDirectionFeedbackTextBlock.Text    = "Distribution: " + visAssessor.ProjectionFeedback + "\n";
            StrokeIntersectionFeedbackTextBlock.Text = "";
        }
Ejemplo n.º 3
0
 private void LoadQuestion(int questionIndex)
 {
     this.currentQuestion              = this.questions[questionIndex];
     this.InstructionTextBlock.Text    = this.currentQuestion.Text;
     this.currentTemplateSketch        = this.strokeTemplates[this.currentQuestion.Answer];
     this.currentTemplateSketchStrokes = SketchPreprocessing.ScaleToFrame(currentTemplateSketch, writingFrameLength);
     this.LoadTemplateImage(this.currentQuestion.Answer);
     InteractionTools.ShowTemplateImage(this.SmallTemplateImage, this.currentImageTemplate);
 }