32 lines
928 B
C#
32 lines
928 B
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.FindResult r)
|
|||
|
{
|
|||
|
var frm= FrmMainEditor.MainEditor.OpenFile(r.Path);
|
|||
|
if (frm.IsDisposed) { return; }
|
|||
|
frm.highlightEditor1.Editor.SetSelection(r.Result.CpMin, r.Result.CpMax);
|
|||
|
frm.highlightEditor1.Editor.ScrollCaret();
|
|||
|
frm.highlightEditor1.Editor.Focus();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|