Beispiel #1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (cbCheckStoredProcedures.Checked)
            {
                // Check directory
                if (!SelectPLSQLSpecDir.IsValidSpecDirectory(tbSpecFilePath.Text))
                {
                    SelectPLSQLSpecDir.ShowNotValidDirectory();
                    EnableDisableButtons();
                    return;
                }
            }

            try
            {
                // Disable Start and Close buttons
                btnStart.Enabled = false;
                btnClose.Enabled = false;
                gbChecks.Enabled = false;

                // Start the timer for Check
                CheckStartTime = DateTime.Now;

                AnalyzeIssueTree issueTree = analyzeService.Check(BackendApplication.Id,
                                                                  FrontendApplication.Id,
                                                                  cbCheckStoredProcedures.Checked,
                                                                  tbSpecFilePath.Text,
                                                                  cbCheckSQLQueries.Checked,
                                                                  tbDatabaseConnection.Text,
                                                                  cbCheckAllMaps.Checked,
                                                                  cbCheckAllDialogs.Checked,
                                                                  CheckCallback);

                ShowIssueList showIssueForm = new ShowIssueList(issueTree);

                showIssueForm.Show();
            }
            finally
            {
                btnStart.Enabled   = true;
                btnClose.Enabled   = true;
                gbChecks.Enabled   = true;
                gbProgress.Visible = false;
            }
        }