private void FindScriptSearch()
        {
            // Get search term
            string  searchTerm = textBoxSearch.Text;
            Boolean ignoreCase = checkBoxIgnoreCase.Checked;

            if (searchTerm == "")
            {
                return;
            }
            // Set wait pointer
            Cursor.Current            = Cursors.WaitCursor;
            toolStripStatusLabel.Text = Properties.Resources.Analysing_objects;
            Application.DoEvents();

            // Get search results
            List <SearchResults> allResults = new List <SearchResults>();

            _siebelApp.SearchScript(allResults, searchTerm, UpdateStatusBar, ignoreCase);

            // Set wait pointer
            toolStripStatusLabel.Text = Properties.Resources.Building_list;
            Application.DoEvents();

            PopulateSearchTree(allResults);

            // Set wait pointer
            Cursor.Current            = Cursors.Default;
            toolStripStatusLabel.Text = Properties.Resources.Ready;
            Application.DoEvents();
        }
        private void buttonScriptSearch_Click(object sender, EventArgs e)
        {
            // Get search term
            string searchTerm = textBoxSearch.Text;

            if (searchTerm != "")
            {
                // Set wait pointer
                Cursor.Current            = Cursors.WaitCursor;
                toolStripStatusLabel.Text = "Analysing objects...";
                Application.DoEvents();

                // Clear list
                treeViewSearchResults.Nodes.Clear();

                // Get search results
                List <SearchResults> allResults = new List <SearchResults>();
                siebelRep.SearchScript(siebelApp, allResults, searchTerm, settings);

                // Set wait pointer
                toolStripStatusLabel.Text = "Building list...";
                Application.DoEvents();

                populateSearchTree(0, null, allResults);

                // Set wait pointer
                Cursor.Current            = Cursors.Default;
                toolStripStatusLabel.Text = "Ready";
                Application.DoEvents();
            }
        }