### RySmartEditor V1.0.2507.1601 - *.[新增]新增文件内容索引搜索。 - *.[新增]新增打开文件自动定位到指定行的功能。 ### SuperDesign V3.0.2507.1601 #### 网页抓取工具 - *.[修复]修复历史记录无法记录的BUG。 #### 编码解码 - *.[新增]新增svg图片代码转Geometry代码的功能。 #### 项目功能->项目管理 - *.[新增]互斥运行标准改为以毕方文件夹为准,而不是以项目文件为准。 - *.[新增]支持同个毕方项目可以不用重启来快捷切换不同子项目。 - *.[新增]支持发布时和打包时自动编译功能。 - *.[修复]修复项目输出路径为相对路径时,更新引用dll可能不成功的BUG。
68 lines
2.2 KiB
C#
68 lines
2.2 KiB
C#
using ryCommon;
|
|
using ryCommonDb;
|
|
using 开发辅助工具.Tools.SmartEditor;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using 开发辅助工具.Manager;
|
|
using static ScintillaNETV2.Style;
|
|
using System.IO;
|
|
using ryControls;
|
|
using static VPKSoft.ScintillaLexers.LexerEnumerations;
|
|
using DiffPlex.Model;
|
|
using VPKSoft.ScintillaLexers;
|
|
using ScintillaDiff;
|
|
|
|
namespace GameBackup3H3.DbOp
|
|
{
|
|
public partial class FrmCompare : Form
|
|
{
|
|
public FrmCompare()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
/// <summary>
|
|
/// 当前高亮语言
|
|
/// </summary>
|
|
public LexerType CurHighliteLang
|
|
{
|
|
get; set;
|
|
} = LexerType.Text;
|
|
public string TextLeft { get; set; } = "";
|
|
public string TextRight { get; set; } = "";
|
|
public string TitleLeft { get; set; } = "";
|
|
public string TitleRight { get; set; } = "";
|
|
private void FrmView_Load(object sender, EventArgs e)
|
|
{
|
|
ScintillaLexers.CreateLexer(scintillaDiffControl1.LeftScintilla, CurHighliteLang,false);
|
|
ScintillaLexers.CreateLexer(scintillaDiffControl1.RightScintilla, CurHighliteLang, false);
|
|
scintillaDiffControl1.TitleLeft = TitleLeft;
|
|
scintillaDiffControl1.TitleRight = TitleRight;
|
|
scintillaDiffControl1.TextLeft= TextLeft;
|
|
scintillaDiffControl1.TextRight= TextRight;
|
|
BtnPrev.Enabled = scintillaDiffControl1.CanGoPrevious;
|
|
BtnNext.Enabled = scintillaDiffControl1.CanGoNext;
|
|
//scintillaDiffControl1.ReInit();
|
|
Text = "查看比对";
|
|
}
|
|
private void BtnPrev_Click(object sender, EventArgs e)
|
|
{
|
|
scintillaDiffControl1.Previous();
|
|
BtnPrev.Enabled = scintillaDiffControl1.CanGoPrevious;
|
|
BtnNext.Enabled = scintillaDiffControl1.CanGoNext;
|
|
}
|
|
|
|
private void BtnNext_Click(object sender, EventArgs e)
|
|
{
|
|
scintillaDiffControl1.Next();
|
|
BtnPrev.Enabled = scintillaDiffControl1.CanGoPrevious;
|
|
BtnNext.Enabled = scintillaDiffControl1.CanGoNext;
|
|
}
|
|
}
|
|
}
|