diff --git a/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.Designer.cs b/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.Designer.cs new file mode 100644 index 0000000000..ecf6ba7ada --- /dev/null +++ b/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.Designer.cs @@ -0,0 +1,80 @@ +/* + * User: dickon + * Date: 30/08/2006 + * Time: 07:27 + * + */ +namespace SharpDbTools.Viewer +{ + partial class TableDescribeForm : System.Windows.Forms.Form + { + /// + /// Designer variable used to keep track of non-visual components. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Disposes resources used by the form. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing) { + if (components != null) { + components.Dispose(); + } + } + base.Dispose(disposing); + } + + /// + /// This method is required for Windows Forms designer support. + /// Do not change the method contents inside the source code editor. The Forms designer might + /// not be able to load this method if it was changed manually. + /// + private void InitializeComponent() + { + this.closeButton = new System.Windows.Forms.Button(); + this.tableInfoDataGridView = new System.Windows.Forms.DataGridView(); + ((System.ComponentModel.ISupportInitialize)(this.tableInfoDataGridView)).BeginInit(); + this.SuspendLayout(); + // + // closeButton + // + this.closeButton.Location = new System.Drawing.Point(108, 502); + this.closeButton.Name = "closeButton"; + this.closeButton.Size = new System.Drawing.Size(79, 23); + this.closeButton.TabIndex = 1; + this.closeButton.Text = "Close"; + this.closeButton.UseVisualStyleBackColor = true; + this.closeButton.Click += new System.EventHandler(this.CloseButtonClick); + // + // dataGridView1 + // + this.tableInfoDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.tableInfoDataGridView.Location = new System.Drawing.Point(2, 1); + this.tableInfoDataGridView.Name = "dataGridView1"; + this.tableInfoDataGridView.Size = new System.Drawing.Size(307, 495); + this.tableInfoDataGridView.TabIndex = 2; + // + // TableDescribeForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(312, 532); + this.Controls.Add(this.tableInfoDataGridView); + this.Controls.Add(this.closeButton); + this.Name = "TableDescribeForm"; + this.Text = "Describe"; + ((System.ComponentModel.ISupportInitialize)(this.tableInfoDataGridView)).EndInit(); + this.ResumeLayout(false); + } + private System.Windows.Forms.DataGridView tableInfoDataGridView; + private System.Windows.Forms.Button closeButton; + + void CloseButtonClick(object sender, System.EventArgs e) + { + this.Close(); + } + } +} diff --git a/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.cs b/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.cs new file mode 100644 index 0000000000..73ac0cf286 --- /dev/null +++ b/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.cs @@ -0,0 +1,33 @@ +/* + * User: dickon + * Date: 30/08/2006 + * Time: 07:27 + * + */ + +using System; +using System.Drawing; +using System.Windows.Forms; + +using System.Data; + +namespace SharpDbTools.Viewer +{ + /// + /// Description of TableDescribeForm. + /// + public partial class TableDescribeForm + { + DataTable tableInfo; + + public TableDescribeForm(DataTable tableInfo) + { + // + // The InitializeComponent() call is required for Windows Forms designer support. + // + InitializeComponent(); + this.tableInfo = tableInfo; + this.tableInfoDataGridView.DataSource = tableInfo; + } + } +} diff --git a/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.resx b/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.resx new file mode 100644 index 0000000000..7080a7d118 --- /dev/null +++ b/src/AddIns/Misc/SharpDbTools/Project/Src/Viewer/TableDescribeForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file