private void buttonFindScriptProbs_Click(object sender, EventArgs e)
        {
            // Set wait pointer
            Cursor.Current            = Cursors.WaitCursor;
            toolStripStatusLabel.Text = "Analysing objects...";
            Application.DoEvents();

            // Clear list
            dataGridViewScriptProbs.Rows.Clear();

            // Get problems
            List <SiebelProblem> allProblems = new List <SiebelProblem>();

            siebelRep.GetCodeProblems(siebelApp, allProblems, settings);

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

            buildProblemLists(allProblems, dataGridViewScriptProbs);

            // Set wait pointer
            Cursor.Current            = Cursors.Default;
            toolStripStatusLabel.Text = "Ready";
            Application.DoEvents();
        }
        private void FindScriptProbs()
        {
            // Set wait pointer
            Cursor.Current            = Cursors.WaitCursor;
            toolStripStatusLabel.Text = Properties.Resources.Analysing_objects;
            Application.DoEvents();

            // Get problems
            List <SiebelProblem> allProblems = new List <SiebelProblem>();
            ScriptSettings       settings    = new ScriptSettings
            {
                CheckDestruction     = Settings.Default.ScriptCheckDestruction,
                CheckForwardBackward = Settings.Default.ScriptCheckForwardBackward,
                CheckNoComments      = Settings.Default.ScriptCheckNoComments,
                CheckRetInFinally    = Settings.Default.ScriptCheckFinally,
                UserFilter           = _scriptUserNameFilter,
                ObjNameFilter        = _scriptObjectNameFilter,
                IgnoreInactive       = Settings.Default.ScriptIgnoreInactive
            };

            _siebelApp.GetCodeProblems(allProblems, settings, UpdateStatusBar);

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

            // Populate Object List View
            fastObjectListViewScriptProbs.Objects = allProblems;
            foreach (OLVColumn column in fastObjectListViewScriptProbs.Columns)
            {
                column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
            }

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