public ProductExplorer(TreeView treeView, TabbedPanel tabbedPanel)
 {
     _treeView                  = treeView;
     _tabbedPanel               = tabbedPanel;
     _treeView.LabelEdit        = true;
     _treeView.MouseUp         += new MouseEventHandler(treeView_MouseUp);
     _treeView.BeforeLabelEdit += new NodeLabelEditEventHandler(treeView_BeforeLabelEdit);
     _treeView.AfterLabelEdit  += new NodeLabelEditEventHandler(treeView_AfterLabelEdit);
     _treeView.KeyDown         += new KeyEventHandler(treeView_KeyDown);
     _treeView.DoubleClick     += new EventHandler(treeView_DoubleClick);
 }
Beispiel #2
0
        private void Initilize()
        {
            this.FormClosing += new FormClosingEventHandler(MDIParent_FormClosing);
            _tabbedPanel      = new TabbedPanel(siteMapsDetails_TabControl);
            _productExplorer  = new ProductExplorer(productExplorer_TreeView, _tabbedPanel);

            // clear tab items
            _tabbedPanel.ClearTabs();
            CopyExplorerDriverServer();
            _selenium = new SeleniumWebDriver(BrowserModel.Firefox, Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));

            this.Text += " " + Assembly.GetExecutingAssembly().GetName().Version + " beta";

            FolderBrowserDialog fbd = new FolderBrowserDialog();

            if (DialogResult.OK == fbd.ShowDialog())
            {
                GlobalSettings.Items.Add("EwsSitemapLocation", fbd.SelectedPath);

                // set the version of the tool
                _productExplorer.LoadProducts(GlobalSettings.Items["EwsSitemapLocation"]);
            }
        }