Пример #1
0
        private void DisplayRecentlyHookedOrUnhookedProcess(IProcess aProcess, ProcessCategoryNode aCategoryNode)
        {
            lock (_lock)
            {
                var processGroupNode = DisplayProcess(aProcess, aCategoryNode);

                var processNode = processGroupNode.GrouppedNodes.First(n => n.Process.Equals(aProcess));

                MarkSelected(processNode);

                EnsureVisible(SelectedNode);
            }
        }
Пример #2
0
        private ProcessGroupNode DisplayProcess(IProcess aProcess, ProcessCategoryNode aCategoryNode)
        {
            _skipSelectionChangedEvent = true;

            Remove(aProcess);

            var groupNode = aCategoryNode.Add(aProcess);

            ExpandCategoryNodes();

            _skipSelectionChangedEvent = false;

            return(groupNode);
        }
Пример #3
0
        public void InitializeComponent()
        {
            _model = new TreeModel();
            Model  = _model;

            _toHookOnStartGroup = new NodeWithUniqueChildren("To Hook On Start");
            _unHooked           = new ProcessCategoryNode("UnHooked");
            _hookedInactive     = new ProcessCategoryNode("Hooked (inactive)");
            _hookedActive       = new ProcessCategoryNode("Hooked (active)");

            _model.Nodes.Add(_toHookOnStartGroup);
            _model.Nodes.Add(_unHooked);
            _model.Nodes.Add(_hookedInactive);
            _model.Nodes.Add(_hookedActive);
        }
Пример #4
0
        private void DisplayRecentlyHookedOrUnhookedProcess(IProcess aProcess, ProcessCategoryNode aCategoryNode)
        {
            lock (_lock)
            {
                var processGroupNode = DisplayProcess(aProcess, aCategoryNode);

                var processNode = processGroupNode.GrouppedNodes.First(n => n.Process.Equals(aProcess));

                MarkSelected(processNode);

                EnsureVisible(SelectedNode);
            }
        }
Пример #5
0
        private ProcessGroupNode DisplayProcess(IProcess aProcess, ProcessCategoryNode aCategoryNode)
        {
            _skipSelectionChangedEvent = true;

            Remove(aProcess);

            var groupNode = aCategoryNode.Add(aProcess);
            ExpandCategoryNodes();

            _skipSelectionChangedEvent = false;

            return groupNode;
        }
Пример #6
0
        public void InitializeComponent()
        {
            _model = new TreeModel();
            Model = _model;

            _toHookOnStartGroup = new NodeWithUniqueChildren("To Hook On Start");
            _unHooked = new ProcessCategoryNode("UnHooked");
            _hookedInactive = new ProcessCategoryNode("Hooked (inactive)");
            _hookedActive = new ProcessCategoryNode("Hooked (active)");

            _model.Nodes.Add(_toHookOnStartGroup);
            _model.Nodes.Add(_unHooked);
            _model.Nodes.Add(_hookedInactive);
            _model.Nodes.Add(_hookedActive);
        }