SuperDesign/Source/RySmartEditor/SmartEditor/FrmCompare.cs
zilinsoft 993f1ca1a9 ### 2024-12-20 星期五更新
------
#### SuperDesign    V3.0.2412.2001
- *.[新增]新增程序更新日志设置和自动发布功能。
- *.[修复]修复Post数据格式不正确时双击文本框会导致软件闪退的BUG。
2024-12-20 08:15:19 +08:00

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 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();
}
/// <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;
}
}
}