Added tablechooser and SqlBuilder class

This commit is contained in:
2025-09-05 12:14:00 -05:00
parent 12386fe11d
commit fb4107117c
10 changed files with 448 additions and 32 deletions

View File

@@ -36,6 +36,9 @@
this.bbiApplyBoth = new DevExpress.XtraBars.BarButtonItem();
this.bar2 = new DevExpress.XtraBars.Bar();
this.bar3 = new DevExpress.XtraBars.Bar();
this.bar4 = new DevExpress.XtraBars.Bar();
this.btsRemoveUnusedColumns = new DevExpress.XtraBars.BarToggleSwitchItem();
this.btsRemoveUnusedTables = new DevExpress.XtraBars.BarToggleSwitchItem();
this.barDockControlTop = new DevExpress.XtraBars.BarDockControl();
this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl();
this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl();
@@ -48,8 +51,7 @@
this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage();
this.deltaSql = new System.Windows.Forms.RichTextBox();
this.xtraTabPage4 = new DevExpress.XtraTab.XtraTabPage();
this.btsRemoveUnusedTables = new DevExpress.XtraBars.BarToggleSwitchItem();
this.btsRemoveUnusedColumns = new DevExpress.XtraBars.BarToggleSwitchItem();
this.bbiBuildTableCreate = new DevExpress.XtraBars.BarButtonItem();
((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.XtraTabControl1)).BeginInit();
this.XtraTabControl1.SuspendLayout();
@@ -63,7 +65,8 @@
this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] {
this.bar1,
this.bar2,
this.bar3});
this.bar3,
this.bar4});
this.barManager1.DockControls.Add(this.barDockControlTop);
this.barManager1.DockControls.Add(this.barDockControlBottom);
this.barManager1.DockControls.Add(this.barDockControlLeft);
@@ -74,9 +77,10 @@
this.bbiMigrations,
this.bbiApplyBoth,
this.btsRemoveUnusedTables,
this.btsRemoveUnusedColumns});
this.btsRemoveUnusedColumns,
this.bbiBuildTableCreate});
this.barManager1.MainMenu = this.bar2;
this.barManager1.MaxItemId = 6;
this.barManager1.MaxItemId = 7;
this.barManager1.StatusBar = this.bar3;
//
// bar1
@@ -89,8 +93,7 @@
new DevExpress.XtraBars.LinkPersistInfo(this.bbiDelta),
new DevExpress.XtraBars.LinkPersistInfo(this.bbiMigrations),
new DevExpress.XtraBars.LinkPersistInfo(this.bbiApplyBoth),
new DevExpress.XtraBars.LinkPersistInfo(this.btsRemoveUnusedTables, true),
new DevExpress.XtraBars.LinkPersistInfo(this.btsRemoveUnusedColumns)});
new DevExpress.XtraBars.LinkPersistInfo(this.bbiBuildTableCreate)});
this.bar1.Text = "Tools";
//
// bbiDelta
@@ -136,13 +139,36 @@
this.bar3.OptionsBar.UseWholeRow = true;
this.bar3.Text = "Status bar";
//
// bar4
//
this.bar4.BarName = "Custom 5";
this.bar4.DockCol = 0;
this.bar4.DockRow = 2;
this.bar4.DockStyle = DevExpress.XtraBars.BarDockStyle.Top;
this.bar4.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] {
new DevExpress.XtraBars.LinkPersistInfo(this.btsRemoveUnusedColumns),
new DevExpress.XtraBars.LinkPersistInfo(this.btsRemoveUnusedTables)});
this.bar4.Text = "Custom 5";
//
// btsRemoveUnusedColumns
//
this.btsRemoveUnusedColumns.Caption = "Remove Unused Columns";
this.btsRemoveUnusedColumns.Id = 5;
this.btsRemoveUnusedColumns.Name = "btsRemoveUnusedColumns";
//
// btsRemoveUnusedTables
//
this.btsRemoveUnusedTables.Caption = "Remove Unused Tables";
this.btsRemoveUnusedTables.Id = 4;
this.btsRemoveUnusedTables.Name = "btsRemoveUnusedTables";
//
// barDockControlTop
//
this.barDockControlTop.CausesValidation = false;
this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top;
this.barDockControlTop.Location = new System.Drawing.Point(0, 0);
this.barDockControlTop.Manager = this.barManager1;
this.barDockControlTop.Size = new System.Drawing.Size(840, 41);
this.barDockControlTop.Size = new System.Drawing.Size(840, 62);
//
// barDockControlBottom
//
@@ -156,17 +182,17 @@
//
this.barDockControlLeft.CausesValidation = false;
this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left;
this.barDockControlLeft.Location = new System.Drawing.Point(0, 41);
this.barDockControlLeft.Location = new System.Drawing.Point(0, 62);
this.barDockControlLeft.Manager = this.barManager1;
this.barDockControlLeft.Size = new System.Drawing.Size(0, 417);
this.barDockControlLeft.Size = new System.Drawing.Size(0, 396);
//
// barDockControlRight
//
this.barDockControlRight.CausesValidation = false;
this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right;
this.barDockControlRight.Location = new System.Drawing.Point(840, 41);
this.barDockControlRight.Location = new System.Drawing.Point(840, 62);
this.barDockControlRight.Manager = this.barManager1;
this.barDockControlRight.Size = new System.Drawing.Size(0, 417);
this.barDockControlRight.Size = new System.Drawing.Size(0, 396);
//
// XtraTabControl1
//
@@ -176,10 +202,10 @@
new DevExpress.XtraTab.Buttons.CustomHeaderButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "Open Databases", -1, true, true, editorButtonImageOptions1, serializableAppearanceObject1, "", "open", null),
new DevExpress.XtraTab.Buttons.CustomHeaderButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "Clear All", -1, true, true, editorButtonImageOptions2, serializableAppearanceObject2, "", "clear", null)});
this.XtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.XtraTabControl1.Location = new System.Drawing.Point(0, 41);
this.XtraTabControl1.Location = new System.Drawing.Point(0, 62);
this.XtraTabControl1.Name = "XtraTabControl1";
this.XtraTabControl1.SelectedTabPage = this.xtraTabPage1;
this.XtraTabControl1.Size = new System.Drawing.Size(840, 417);
this.XtraTabControl1.Size = new System.Drawing.Size(840, 396);
this.XtraTabControl1.TabIndex = 4;
this.XtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.xtraTabPage1,
@@ -192,7 +218,7 @@
//
this.xtraTabPage1.Controls.Add(this.db1Sql);
this.xtraTabPage1.Name = "xtraTabPage1";
this.xtraTabPage1.Size = new System.Drawing.Size(838, 375);
this.xtraTabPage1.Size = new System.Drawing.Size(838, 354);
this.xtraTabPage1.Text = "Live / Production DB";
//
// db1Sql
@@ -202,7 +228,7 @@
this.db1Sql.Location = new System.Drawing.Point(0, 0);
this.db1Sql.Name = "db1Sql";
this.db1Sql.ReadOnly = true;
this.db1Sql.Size = new System.Drawing.Size(838, 375);
this.db1Sql.Size = new System.Drawing.Size(838, 354);
this.db1Sql.TabIndex = 0;
this.db1Sql.Text = "This database is the one that is currently in use by the application. This databa" +
"se needs to be updated to fit the most recent schema.";
@@ -211,7 +237,7 @@
//
this.xtraTabPage2.Controls.Add(this.db2Sql);
this.xtraTabPage2.Name = "xtraTabPage2";
this.xtraTabPage2.Size = new System.Drawing.Size(838, 375);
this.xtraTabPage2.Size = new System.Drawing.Size(838, 354);
this.xtraTabPage2.Text = "Schema / Updated DB";
//
// db2Sql
@@ -221,7 +247,7 @@
this.db2Sql.Location = new System.Drawing.Point(0, 0);
this.db2Sql.Name = "db2Sql";
this.db2Sql.ReadOnly = true;
this.db2Sql.Size = new System.Drawing.Size(838, 375);
this.db2Sql.Size = new System.Drawing.Size(838, 354);
this.db2Sql.TabIndex = 1;
this.db2Sql.Text = resources.GetString("db2Sql.Text");
//
@@ -229,7 +255,7 @@
//
this.xtraTabPage3.Controls.Add(this.deltaSql);
this.xtraTabPage3.Name = "xtraTabPage3";
this.xtraTabPage3.Size = new System.Drawing.Size(838, 375);
this.xtraTabPage3.Size = new System.Drawing.Size(838, 354);
this.xtraTabPage3.Text = "Delta SQL";
//
// deltaSql
@@ -239,7 +265,7 @@
this.deltaSql.Location = new System.Drawing.Point(0, 0);
this.deltaSql.Name = "deltaSql";
this.deltaSql.ReadOnly = true;
this.deltaSql.Size = new System.Drawing.Size(838, 375);
this.deltaSql.Size = new System.Drawing.Size(838, 354);
this.deltaSql.TabIndex = 1;
this.deltaSql.Text = "This SQL script contains all of the SQL commands required to make the production " +
"(existing) database the same as the new template database.";
@@ -247,20 +273,15 @@
// xtraTabPage4
//
this.xtraTabPage4.Name = "xtraTabPage4";
this.xtraTabPage4.Size = new System.Drawing.Size(838, 375);
this.xtraTabPage4.Size = new System.Drawing.Size(838, 354);
this.xtraTabPage4.Text = "Migrations";
//
// btsRemoveUnusedTables
// bbiBuildTableCreate
//
this.btsRemoveUnusedTables.Caption = "Remove Unused Tables";
this.btsRemoveUnusedTables.Id = 4;
this.btsRemoveUnusedTables.Name = "btsRemoveUnusedTables";
//
// btsRemoveUnusedColumns
//
this.btsRemoveUnusedColumns.Caption = "Remove Unused Columns";
this.btsRemoveUnusedColumns.Id = 5;
this.btsRemoveUnusedColumns.Name = "btsRemoveUnusedColumns";
this.bbiBuildTableCreate.Caption = "Build Table Create Script";
this.bbiBuildTableCreate.Id = 6;
this.bbiBuildTableCreate.Name = "bbiBuildTableCreate";
this.bbiBuildTableCreate.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.ToolbarItemClicked);
//
// MainForm
//
@@ -309,5 +330,7 @@
private System.Windows.Forms.RichTextBox deltaSql;
private DevExpress.XtraBars.BarToggleSwitchItem btsRemoveUnusedTables;
private DevExpress.XtraBars.BarToggleSwitchItem btsRemoveUnusedColumns;
private DevExpress.XtraBars.Bar bar4;
private DevExpress.XtraBars.BarButtonItem bbiBuildTableCreate;
}
}