private void generate(SqlAudit.ScriptAction scriptAction) { try { this.txtDDLScript.Text = SQLAudit.StorageAuditGenerator.GenerateAuditScript(this.storage.ConnectionString, scriptAction, null); } catch (Exception ex) { this.ShowError(ex.Message); } }
private void generate(SqlAudit.ScriptAction scriptAction) { try { this.HourGlass(true); this.txtDDLScript.Clear(); /*Application.DoEvents();*/ this.txtDDLScript.Text = SQLAudit.StorageAuditGenerator.GenerateAuditScript(this.storage.ConnectionString, scriptAction, new SqlAudit.ProgressChangeDelegate(this.ProgressChange)); this.txtDDLScript.SelectionStart = 0; this.txtDDLScript.ScrollToCaret(); } catch (Exception ex) { this.ShowError(ex.Message, ex.Source); } finally { this.HourGlass(false); } }