LunarPresentation/Commands/FindAndReplace.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.Windows;
using SHomeWorkshop.LunarPresentation.Dialogs;
namespace SHomeWorkshop.LunarPresentation.Commands
{
public partial class Command
{
#region 旧的查找方法,涉及主界面。
/// <summary>
/// 参数用于重启快捷键(使主窗口获取焦点)。
/// </summary>
/// <param name="window"></param>
//public static void Find(MainWindow window)
//{
// if (Globals.selectedEditor == null) return;
// Dialogs.InputWindow iw = new Dialogs.InputWindow(window, "请输入查找关键词,以便在当前文档中搜索:", "");
// if (iw.ShowDialog() != true || iw.InputedText.Length < 1)
// {
// window.Focus();
// Globals.SwitchInputMethod(false);
// return;
// }
// if (window.toolTab.SelectedItem != window.tiFindInDocument)
// {
// window.toolTab.SelectedItem = window.tiFindInDocument;
// }
// window.Focus();
// Globals.SwitchInputMethod(false);
// string keyword = iw.InputedText;
// // 找出所有符合条件的文本块,并添加到右侧列表框中。
// if (keyword.Length <= 0) return;
// List<Expressions.BaseText> resultList = new List<Expressions.BaseText>();
// FindBaseTextInExpression(resultList, Globals.selectedEditor.RootPanel, keyword);
// window.spFindResult.Children.Clear();
// foreach (UIElement ue in resultList)
// {
// Expressions.BaseText bt = ue as Expressions.BaseText;
// if(bt != null)
// {
// window.spFindResult.Children.Add(new FindTextBlock(bt));
// }
// }
// if (window.gcAssist.ActualWidth < 140)
// {
// window.gcAssist.Width = new GridLength(300);
// window.toolTab.Visibility = Visibility.Visible;
// }
//}
后面还有 243 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。