public ErrorFormParams RunPostScript(string postScript) { string sql = null; if (postScript != null) { sql = postScript; OutputHandler.WriteToLog("Running Post Script"); } UnattendedForm form = new UnattendedForm(); form.Initialize(_databaseOperation, sql); if (GenericHelper.IsUserInteractive()) { form.ShowDialog(this); } ErrorFormParams errorFormParams = form.GetErrorFormParams(); return(errorFormParams); }
public ErrorFormParams RunPostScriptFile(string postScriptFileName) { string sql = null; if (postScriptFileName != null) { sql = File.ReadAllText(postScriptFileName); OutputHandler.WriteToLog(string.Format("Running Post Script File \"{0}\"", postScriptFileName)); } UnattendedForm form = new UnattendedForm(); form.Initialize(_databaseOperation, sql); if (GenericHelper.IsUserInteractive()) { form.ShowDialog(this); } ErrorFormParams errorFormParams = form.GetErrorFormParams(); return(errorFormParams); }