LunarPresentation/Globals.cs

(开头部分) 49KB

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

using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using SHomeWorkshop.LunarPresentation.Converts;
using SHomeWorkshop.LunarPresentation.Dialogs;
using SHomeWorkshop.LunarPresentation.Interfaces;

namespace SHomeWorkshop.LunarPresentation
{
    public enum TypeOfExpression
    {
        Arrow, BaseText, Brace, Bracket, Expander, Grid, GridPanel,
        LogicCross, LogicGenuspecies, LogicContradiction, MarkText,
        PictureBox, RichText, Row, SubPanel, Triangle, UnKnow,
        Tree
    }

    public static class Globals
    {
        static Globals()
        {
            baseActiveBackGround = new LinearGradientBrush();
            baseActiveBackGround.StartPoint = new Point(0, 0);
            baseActiveBackGround.EndPoint = new Point(0, 1);
            baseActiveBackGround.GradientStops.Add(new GradientStop(Colors.LightCyan, 0.0));
            baseActiveBackGround.GradientStops.Add(new GradientStop(Colors.Transparent, 0.2));
            baseActiveBackGround.GradientStops.Add(new GradientStop(Colors.Transparent, 0.86));
            baseActiveBackGround.GradientStops.Add(new GradientStop(Colors.LightCyan, 1.0));

            commandLineList = new List<string>();

            globalDataSetIn = new DataSet();
            Globals.globalDataSetIn.Tables.Add("Expressions");


            pathOfUserDirectory = pathOfMyDocuments + "\\SHome WorkShop\\Lunar Presentation\\";

            pathOfUserTemplateDocuments = pathOfUserDirectory + "Templates\\";

            if (installedPath.EndsWith("\\"))
            {
                pathOfSystemTemplateDocuments = installedPath + "Templates\\";
            }
            else
            {
                pathOfSystemTemplateDocuments = installedPath + "\\Templates\\";
            }

            pathofUserDocuments = pathOfUserDirectory + "Documents\\";

            pathOfExpressionDatabase = pathOfUserDirectory + "LunarExpressions.mdb";
            if (System.IO.Directory.Exists(pathOfUserDirectory) == false)
后面还有 1165 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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