------ #### SuperDesign V3.0.2412.2001 - *.[新增]新增程序更新日志设置和自动发布功能。 - *.[修复]修复Post数据格式不正确时双击文本框会导致软件闪退的BUG。
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using WeifenLuo.WinFormsUI.Docking;
|
|
using 开发辅助工具.Tools.SmartEditor;
|
|
|
|
namespace SuperDesign.Tools.SmartEditor
|
|
{
|
|
public partial class FrmResultText : DockContent
|
|
{
|
|
public FrmResultText()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void FindAllResultsPanel1_OnResultClick(object sender, ScintillaNET_FindReplaceDialog.FindAllResults.FindResult r)
|
|
{
|
|
var frm= FrmMainEditor.MainEditor.OpenFile(r.Path);
|
|
if (frm.IsDisposed) { return; }
|
|
if (frm.highlightEditor1.Editor.GetColumn(r.Result.CpMin) < frm.highlightEditor1.Editor.GetColumn(r.Result.CpMax))
|
|
{
|
|
frm.highlightEditor1.Editor.GotoPosition(r.Result.CpMax);
|
|
}
|
|
frm.highlightEditor1.Editor.SetSelection(r.Result.CpMin, r.Result.CpMax);
|
|
frm.highlightEditor1.Editor.ScrollCaret();
|
|
frm.highlightEditor1.Editor.Focus();
|
|
}
|
|
}
|
|
}
|