public void Setup(InvalidSQLException exception, bool allowSkip) { UpgradeInstaller.LogError(exception.InnerException, "[ERROR]\r\n" + "FileName: '" + ((InvalidSQLException)exception).FileName + "'\r\n" + exception.SQL); txtError.Text = "FileName: '" + exception.FileName + "'\r\n" + exception.InnerException.ToString(); txtSql.Text = exception.SQL; cmdSkip.Visible = allowSkip; }
public void Setup(InvalidSQLException exception, bool allowSkip) { UpgradeInstaller.LogError(exception.InnerException, "[ERROR SCRIPT]\r\n" + exception.SQL); txtError.Text = exception.InnerException.ToString(); txtSql.Text = exception.SQL; cmdSkip.Visible = allowSkip; }
private static bool SkipScriptPrompt(InvalidSQLException ex) { //TODO: Allow a way to allow override from parameters //This used to popup a dialog and ask for "OK" //for now just logging and skipping Log.Information(ex.Message); return(true); }
private static bool SkipScriptPrompt(InvalidSQLException ex) { var F = new SqlErrorForm(); F.Setup(ex, true); return (F.ShowDialog() == System.Windows.Forms.DialogResult.OK); }