public SearchHandler(TreeView searchTreeView, string text, SearchType searchType, TreeViewHandler treeViewHandler) { _searchTreeView = searchTreeView; _searchText = text.ToLower(); _searchType = searchType; _treeViewHandler = treeViewHandler; }
public MainForm() { InitializeComponent(); _treeViewHandler = new TreeViewHandler(treeView1, treeMenu); TabControl = tabControl1; ListAnalysis = listAnalysis; ListAnalysis.Columns[0].Width = -1; LblAnalysis = lblAnalysis; DgBody = dgBody; DgVariables = dgVariables; RtbILSpy = rtbILSpy; TreeView = treeView1; ToolStrip = toolStrip1; InstructionMenuStrip = instructionMenu; VariableMenu = variableMenu; ExceptionHandlerMenu = exceptionHandlerMenu; TreeMenuStrip = treeMenu; txtMagicRegex.Text = Settings.Default.MagicRegex; InitializeBody(); cbSearchType.SelectedIndex = 0; }
public static void ExpandHandler(TreeNode expandedNode, TreeViewHandler treeViewHandler) { if (expandedNode.HasVirtualNode()) { var processor = new NodeDevirtualizer(expandedNode, treeViewHandler); processor.ProcessNode(); VirtualNodeHandler.VirtualNodes--; expandedNode.Nodes.Remove(expandedNode.FindVirtualNode()); } }
public PickReferenceForm(string reference) { InitializeComponent(); _treeViewHandler = new TreeViewHandler(treeView1, treeMenu); treeView1.AllowDrop = true; _reference = reference; //TODO: Add detection to avoid useless assignment EditInstructionForm.SelectedReference = null; EditVariableForm.SelectedReference = null; EditExceptionHandlerForm.SelectedReference = null; }
public static bool OpenFile(TreeViewHandler treeViewHandler, string file, ref CurrentAssembly currentAssembly, bool clear = false) { if (string.IsNullOrEmpty(file)) throw new ArgumentException("No path provided!"); var newCurrentAssembly = new CurrentAssembly(file); if (newCurrentAssembly.ManifestModule == null) return false; currentAssembly = newCurrentAssembly; treeViewHandler.LoadAssembly(currentAssembly.ManifestModule, file, clear); return true; }
public ReferenceHandler(TreeViewHandler treeViewHandler) { _treeViewHandler = treeViewHandler; }
public TypeHandler(TreeViewHandler treeViewHandler) { _treeViewHandler = treeViewHandler; }
public SearchStringGlobal(TreeViewHandler treeViewHandler, string searchText) { _treeViewHandler = treeViewHandler; _searchText = searchText; }
public SearchMDToken(TreeViewHandler treeViewHandler, string searchText) { _treeViewHandler = treeViewHandler; _searchText = searchText; }
public NodeDevirtualizer(TreeNode node, TreeViewHandler treeViewHandler) { Node = node; _treeViewHandler = treeViewHandler; }
public NavigationHistory(TreeViewHandler treeViewHandler) { _treeViewHandler = treeViewHandler; _mainForm = (_treeViewHandler.CurrentForm is MainForm) ? (MainForm)_treeViewHandler.CurrentForm : null; }
public SearchAny(TreeViewHandler treeViewHandler, string searchText) { _treeViewHandler = treeViewHandler; _searchText = searchText; }
private static void HandleToolStripItemsState(TreeViewHandler treeViewHandler) { if (!(treeViewHandler.CurrentForm is MainForm)) return; var mainForm = (MainForm) treeViewHandler.CurrentForm; mainForm.HandleToolStripItemsState(); }