LunarPresentation/Commands/Help.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Windows;
using WinForm = System.Windows.Forms;
namespace SHomeWorkshop.LunarPresentation.Commands
{
public partial class Command
{
public static void Help()
{
string helpFilePath = Globals.installedPath;
if (helpFilePath.EndsWith("\\") == false)
{
helpFilePath += "\\";
}
helpFilePath += "Help\\Help.chm";
if (System.IO.File.Exists(helpFilePath) == false)
{
MessageBox.Show("未找到帮助文档,无法继续!",
Globals.appName, MessageBoxButton.OK, MessageBoxImage.Warning);
return;
}
//System.Diagnostics.Process.Start(helpFilePath);
if (Globals.selectedEditor == null ||
Globals.selectedEditor.SelectedExpression == null)
{
WinForm.Help.ShowHelp(null, helpFilePath);
}
else
{
string htmlString = "";
if (Globals.selectedEditor.SelectedExpression is Expressions.Grid)
{
htmlString = "gridexpression.htm";
}
else if (Globals.selectedEditor.SelectedExpression is Expressions.LogicGenuspecies ||
Globals.selectedEditor.SelectedExpression is Expressions.LogicCross ||
Globals.selectedEditor.SelectedExpression is Expressions.LogicContradiction)
{
htmlString = "logicexpressions.htm";
}
else if (Globals.selectedEditor.SelectedExpression is Expressions.MarkText)
{
htmlString = "marktext.htm";
}
else if (Globals.selectedEditor.SelectedExpression is Expressions.Triangle)
{
htmlString = "triangle.htm";
}
else if (Globals.selectedEditor.SelectedExpression is Expressions.Bracket)
{
htmlString = "bracket.htm";
}
else if (Globals.selectedEditor.SelectedExpression is Expressions.BaseText)
{
htmlString = "basetext.htm";
}
后面还有 66 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。