public FindAllResultEditor(FindAllResultFile file) : base(file) { this.DockAreas = WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight | WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop | WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.Document; this.view = new NekoKun.UI.NavPointListView(); this.view.Dock = System.Windows.Forms.DockStyle.Fill; this.Controls.Add(this.view); Array.ForEach <NavPoint>(file.Result, this.view.AddItem); this.view.SetKeyword(file.Keyword); }
private void menuEditFindAll_Click(object sender, EventArgs e) { var dialog = new FindAllDialog(); dialog.ShowDialog(); if (dialog.DialogResult == DialogResult.OK) { var keyword = dialog.Keyword; var result = FileManager.FindAll(keyword); var file = new FindAllResultFile(keyword, result); file.ShowEditor(); try { //TODO: file.Editor.Show(NekoKun.Core.Application.Logger.Editor.Pane, NekoKun.Core.Application.Logger.Editor); } catch { } } }