LunarMind/TestEditor/PresentationWindow.xaml.cs

(开头部分) 49KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using SHomeWorkshop.LunarMind;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace LunarSF.SHomeWorkshop.LunarMind
{
    /// <summary>
    /// PresentationWindow.xaml 的交互逻辑
    /// </summary>
    public partial class PresentationWindow : Window
    {
        public PresentationWindow()
        {
            InitializeComponent();

            string zoomText = Globals.MainWindow.ConfigManager.Get("ExamZoom");
            if (zoomText != null)
            {
                try
                {
                    double zoom = double.Parse(zoomText);
                    if (zoom != 150)//150是在xaml文件中设置的默认值。
                    {
                        mainDocumentReader.Zoom = zoom;
                    }
                }
                catch (Exception)
                {
                    mainDocumentReader.Zoom = 150;
                }
            }

            Globals.SwitchInputMethod(false);
        }

        private List<Question> questions = new List<Question>();
        private int point;

        public void BuildQuestions(string content)
        {
            this.questions.Clear();
            this.point = -1;

            //分解试题源文本,分解成试题列表。
            if (string.IsNullOrEmpty(content))
            {
                this.ShowQuestion();
                return;
            }
后面还有 1324 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。