public StatusReporting(SqlSyncBuildData buildData, MultiDb.MultiDbData multiDbData, string projectFilePath, string buildZipFileName) { this.buildData = buildData; this.multiDbData = multiDbData; this.buildZipFileName = buildZipFileName; this.projectFilePath = projectFilePath; }
private bool PrecompileMultiDbData() { if (this.connData == null) { MessageBox.Show("Please select a source server and database to execute against", "Connection Needed", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(false); } if (ddDatabase.SelectedItem == null) { MessageBox.Show("Please select a database to execute against", "Database Name Needed", MessageBoxButtons.OK, MessageBoxIcon.Warning); return(false); } connData.DatabaseName = ddDatabase.SelectedItem.ToString(); connData.SQLServerName = lblServer.Text.Trim(); string message; this.multiDbConfig = MultiDbHelper.CreateMultiDbConfigFromQuery(connData, rtbSqlScript.Text, out message); if (this.multiDbConfig == null) { MessageBox.Show("Unable to create a configuration from your query. Please confirm your database settings and query.\r\n\r\nDatabase Message:\r\n" + message, "Unable to create", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } return(true); }
public StatusReportForm(SqlSyncBuildData buildData, MultiDb.MultiDbData multiDbData, string projectFilePath, string buildZipFileName, ConnectionData connData) : this(multiDbData, connData) { this.buildData = buildData; this.buildZipFileName = buildZipFileName; this.projectFilePath = projectFilePath; this.ddOutputType.SelectedIndex = 0; }
public ObjectComparisonReportForm(MultiDb.MultiDbData multiDbData, ConnectionData connData) : base(multiDbData, connData) { InitializeComponent(); base.ddOutputType.Items.Clear(); base.ddOutputType.Items.Add("XML"); base.ddOutputType.Items.Add("Summary"); base.ddOutputType.SelectedIndex = 1; }
public BuildValidationForm(MultiDb.MultiDbData multiDbData, ConnectionData connData) : base(multiDbData, connData) { InitializeComponent(); base.ddOutputType.Items.Clear(); base.ddOutputType.Items.Add("CSV"); base.ddOutputType.Items.Add("HTML"); base.ddOutputType.Items.Add("XML"); base.ddOutputType.SelectedIndex = 0; this.btnGenerate.Click -= new EventHandler(this.btnGenerate_Click); this.btnGenerate.Click -= new EventHandler(this.btnGenerate_Click_1); //Get this form's click handler to fire first... this.btnGenerate.Click += new EventHandler(this.btnGenerate_Click_1); this.btnGenerate.Click += new EventHandler(this.btnGenerate_Click); }
protected StatusReportForm(MultiDb.MultiDbData multiDbData, ConnectionData connData) : this() { this.multiDbData = multiDbData; this.connData = connData; }