Exemple #1
0
        public Essay()
        {
            InitializeComponent();

            slider.Value = 80;

            CellList = TemplateWPF.BuildTemplate(TemplateEssay.Words, 0, StkTemplate);
            //HighlightEssayType();
        }
Exemple #2
0
        public SumRetell()
        {
            InitializeComponent();

            slider.Value = 80;

            CellList = TemplateWPF.BuildTemplate(TemplateSumRetell.Words, 0, StkTemplate, TemplateSumRetell.TemplateGaps);
            HighlightEssayType();
        }
Exemple #3
0
        public DescImg()
        {
            InitializeComponent();

            slider.Value = 80;

            CellList = TemplateWPF.BuildTemplate(TemplateDescImgy.Words, 0, StkTemplate, TemplateDescImgy.TemplateGaps);
            HighlightEssayType();
        }
Exemple #4
0
        private void BtnFinish_Click(object sender, RoutedEventArgs e)
        {
            lblScore.Visibility = Visibility.Visible;
            var result = TemplateWPF.CheckAnswers(CellList);

            lblScore.Content    = result.Item1;
            lblScore.Foreground = UtilWPF.GetAvgColor(result.Item2);

            btnFinish.IsEnabled = false;
        }
Exemple #5
0
        private void Filter_Click(object sender, RoutedEventArgs e)
        {
            int lastDays = 99;

            if (!txtFilter.Text.IsEmpty() && txtFilter.Text.IsDigitsOnly() && txtFilter.Text != "0")
            {
                lastDays = Convert.ToInt32(txtFilter.Text);
            }

            CellList = TemplateWPF.BuildTemplate(TemplateEssay.Words, 0, StkTemplate);
            TemplateWPF.ShowScoredTemplate(CellList, lastDays);

            btnFinish.IsEnabled = false;
            lblScore.Visibility = Visibility.Hidden;
        }
Exemple #6
0
        private void BtnStart_Click(object sender, RoutedEventArgs e)
        {
            if (cb_33.IsChecked.Value)
            {
                percentageTxt = 33;
            }
            else
            {
                percentageTxt = 100 - slider.Value;
            }

            CellList = TemplateWPF.BuildTemplate(TemplateEssay.Words, percentageTxt, StkTemplate);
            //HighlightEssayType();

            btnFinish.IsEnabled = true;
            lblScore.Visibility = Visibility.Hidden;
        }
Exemple #7
0
        private void BtnStart_Click(object sender, RoutedEventArgs e)
        {
            if (cb_33.IsChecked.Value)
            {
                percentageTxt = 33;
            }
            else
            {
                percentageTxt = 100 - slider.Value;
            }

            imgTemplateType.Source = new BitmapImage(new Uri(TemplateDescImgy.GetRndType1Img()));

            CellList = TemplateWPF.BuildTemplate(TemplateDescImgy.Words, percentageTxt, StkTemplate, TemplateDescImgy.TemplateGaps);
            HighlightEssayType();

            btnFinish.IsEnabled = true;
            lblScore.Visibility = Visibility.Hidden;
        }