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 ScintillaNET.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(); } /// /// 当前高亮语言 /// 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; } } }