예제 #1
0
        public Essay()
        {
            InitializeComponent();

            slider.Value = 80;

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

            slider.Value = 80;

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

            slider.Value = 80;

            CellList = TemplateWPF.BuildTemplate(TemplateDescImgy.Words, 0, StkTemplate, TemplateDescImgy.TemplateGaps);
            HighlightEssayType();
        }
예제 #4
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;
        }
예제 #5
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;
        }
예제 #6
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;
        }