Esempio n. 1
0
        public FindReplace(MainForm main, NodeTreeController controller, DataNode searchRoot)
        {
            InitializeComponent();

            _main           = main;
            _mainController = controller;
            _mainSearchRoot = searchRoot;

            _findController = new RuleTreeController(treeView1);
            treeView1.NodeMouseDoubleClick += (s, e) => { _findController.EditSelection(); };

            //_findController.VirtualRootDisplay = "Find Rules";

            _replaceController              = new NodeTreeController(treeView2);
            treeView2.NodeMouseDoubleClick += (s, e) => { _replaceController.EditSelection(); };

            _replaceController.VirtualRootDisplay = "Replacement Tags";

            _explorerStrip.Renderer  = new ToolStripExplorerRenderer();
            _explorerStrip.ImageList = _mainController.IconList;

            _explorerManager = new ExplorerBarController(_explorerStrip, _mainController.IconRegistry,
                                                         _mainController.IconList, searchRoot);
            _explorerManager.SearchRootChanged += (s, e) =>
            {
                _mainSearchRoot = _explorerManager.SearchRoot;
                Reset();
            };
        }
Esempio n. 2
0
        public FindReplace (MainForm main, NodeTreeController controller, DataNode searchRoot)
        {
            InitializeComponent();

            _main = main;
            _mainController = controller;
            _mainSearchRoot = searchRoot;

            _findController = new RuleTreeController(treeView1);
            treeView1.NodeMouseDoubleClick += (s, e) => {
                _findController.EditSelection();
            };

            //_findController.VirtualRootDisplay = "Find Rules";

            _replaceController = new NodeTreeController(treeView2);
            treeView2.NodeMouseDoubleClick += (s, e) => {
                _replaceController.EditSelection();
            };

            _replaceController.VirtualRootDisplay = "Replacement Tags";

            _explorerStrip.Renderer = new ToolStripExplorerRenderer();
            _explorerStrip.ImageList = _mainController.IconList;

            _explorerManager = new ExplorerBarController(_explorerStrip, _mainController.IconRegistry, _mainController.IconList, searchRoot);
            _explorerManager.SearchRootChanged += (s, e) => {
                _mainSearchRoot = _explorerManager.SearchRoot;
                Reset();
            };
        }
Esempio n. 3
0
 private void _tbFindEdit_Click(object sender, EventArgs e)
 {
     _findController.EditSelection();
 }