Beispiel #1
0
        private void btnFindAll_Click(object sender, EventArgs e)
        {
            if (coloredNode != null)
            {
                coloredNode.BackColor = Color.White;
                coloredNode           = null;
            }
            if (findBox.Text == "" || DataTree.Nodes.Count == 0)
            {
                return;
            }
            if (DataTree.SelectedNode == null)
            {
                DataTree.SelectedNode = DataTree.Nodes[0];
            }
            finished          = false;
            listSearchResults = true;
            searchResultsList.Clear();
            //searchResultsBox.Items.Clear();
            searchValues  = UserSettings.SearchStringValues;
            currentidx    = 0;
            searchText    = findBox.Text;
            extractImages = UserSettings.ParseImagesInSearch;
            foreach (WzNode node in DataTree.SelectedNodes)
            {
                if (node.Tag is WzImageProperty)
                {
                    continue;
                }
                else if (node.Tag is IPropertyContainer)
                {
                    SearchWzProperties((IPropertyContainer)node.Tag);
                }
                else
                {
                    SearchTV(node);
                }
            }
            DockableSearchResult dsr = new DockableSearchResult();

            dsr.SelectedIndexChanged += new EventHandler(searchResultsBox_SelectedIndexChanged);
            foreach (string result in searchResultsList)
            {
                dsr.searchResultsBox.Items.Add(result);
            }
            dsr.Show(MainDockPanel);
            dsr.DockState = DockState.DockBottom;
//            searchResults.AutoHide = false;
//            searchResults.Visible = true;
//            searchResultsContainer.Visible = true;
//            dockSite8.Visible = true;
//            panelDockContainer1.Visible = true;
            findBox.Focus();
        }
 private void btnFindAll_Click(object sender, EventArgs e)
 {
     if (coloredNode != null)
     {
         coloredNode.BackColor = Color.White;
         coloredNode = null;
     }
     if (findBox.Text == "" || DataTree.Nodes.Count == 0) return;
     if (DataTree.SelectedNode == null) DataTree.SelectedNode = DataTree.Nodes[0];
     finished = false;
     listSearchResults = true;
     searchResultsList.Clear();
     //searchResultsBox.Items.Clear();
     searchValues = UserSettings.SearchStringValues;
     currentidx = 0;
     searchText = findBox.Text;
     extractImages = UserSettings.ParseImagesInSearch;
     foreach (WzNode node in DataTree.SelectedNodes)
     {
         if (node.Tag is WzImageProperty) continue;
         else if (node.Tag is IPropertyContainer)
             SearchWzProperties((IPropertyContainer)node.Tag);
         else SearchTV(node);
     }
     DockableSearchResult dsr = new DockableSearchResult();
     dsr.SelectedIndexChanged += new EventHandler(searchResultsBox_SelectedIndexChanged);
     foreach (string result in searchResultsList)
         dsr.searchResultsBox.Items.Add(result);
     dsr.Show(MainDockPanel);
     dsr.DockState = DockState.DockBottom;
     //            searchResults.AutoHide = false;
     //            searchResults.Visible = true;
     //            searchResultsContainer.Visible = true;
     //            dockSite8.Visible = true;
     //            panelDockContainer1.Visible = true;
     findBox.Focus();
 }