示例#1
0
 public SearchHandler(TreeView searchTreeView, string text, SearchType searchType, TreeViewHandler treeViewHandler)
 {
     _searchTreeView  = searchTreeView;
     _searchText      = text.ToLower();
     _searchType      = searchType;
     _treeViewHandler = treeViewHandler;
 }
示例#2
0
        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;
        }
示例#3
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());
     }
 }
示例#4
0
        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;
        }
示例#5
0
 public SearchHandler(TreeView searchTreeView, string text, SearchType searchType, TreeViewHandler treeViewHandler)
 {
     _searchTreeView = searchTreeView;
     _searchText = text.ToLower();
     _searchType = searchType;
     _treeViewHandler = treeViewHandler;
 }
示例#6
0
        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;
        }
示例#7
0
 public ReferenceHandler(TreeViewHandler treeViewHandler)
 {
     _treeViewHandler = treeViewHandler;
 }
示例#8
0
 public TypeHandler(TreeViewHandler treeViewHandler)
 {
     _treeViewHandler = treeViewHandler;
 }
示例#9
0
 public TypeHandler(TreeViewHandler treeViewHandler)
 {
     _treeViewHandler = treeViewHandler;
 }
示例#10
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());
     }
 }
示例#11
0
 public SearchStringGlobal(TreeViewHandler treeViewHandler, string searchText)
 {
     _treeViewHandler = treeViewHandler;
     _searchText      = searchText;
 }
示例#12
0
 public SearchMDToken(TreeViewHandler treeViewHandler, string searchText)
 {
     _treeViewHandler = treeViewHandler;
     _searchText      = searchText;
 }
示例#13
0
 public NodeDevirtualizer(TreeNode node, TreeViewHandler treeViewHandler)
 {
     Node = node;
     _treeViewHandler = treeViewHandler;
 }
示例#14
0
 public SearchStringGlobal(TreeViewHandler treeViewHandler, string searchText)
 {
     _treeViewHandler = treeViewHandler;
     _searchText = searchText;
 }
示例#15
0
 public NavigationHistory(TreeViewHandler treeViewHandler)
 {
     _treeViewHandler = treeViewHandler;
     _mainForm = (_treeViewHandler.CurrentForm is MainForm) ? (MainForm)_treeViewHandler.CurrentForm : null;
 }
示例#16
0
 public SearchAny(TreeViewHandler treeViewHandler, string searchText)
 {
     _treeViewHandler = treeViewHandler;
     _searchText = searchText;
 }
示例#17
0
        private static void HandleToolStripItemsState(TreeViewHandler treeViewHandler)
        {
            if (!(treeViewHandler.CurrentForm is MainForm))
                return;

            var mainForm = (MainForm) treeViewHandler.CurrentForm;
            mainForm.HandleToolStripItemsState();
        }
示例#18
0
 public NodeDevirtualizer(TreeNode node, TreeViewHandler treeViewHandler)
 {
     Node             = node;
     _treeViewHandler = treeViewHandler;
 }
示例#19
0
 public ReferenceHandler(TreeViewHandler treeViewHandler)
 {
     _treeViewHandler = treeViewHandler;
 }