Click here to Skip to main content
15,897,371 members
Articles / Programming Languages / XML

Create Data Classes

Rate me:
Please Sign up or sign in to vote.
4.88/5 (31 votes)
4 Mar 2011CPOL10 min read 135.9K   2.5K   167  
An application that creates a C# class to read/write data to/from an Access, SQLite, or XML database.
namespace JGClassGenerator
{
	partial class FormCreateAccessDB
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows Form Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.txtTableName = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.rbAccessPrevious = new System.Windows.Forms.RadioButton();
			this.rbAccess12 = new System.Windows.Forms.RadioButton();
			this.txtDBFileName = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.panTop = new System.Windows.Forms.Panel();
			this.rbCreateNew = new System.Windows.Forms.RadioButton();
			this.rbUseExisting = new System.Windows.Forms.RadioButton();
			this.gbxNew = new System.Windows.Forms.GroupBox();
			this.panAccess12 = new System.Windows.Forms.Panel();
			this.pickNewFolder = new JGClassGenerator.JFileFolderPicker();
			this.gbxExisting = new System.Windows.Forms.GroupBox();
			this.pickExistingDB = new JGClassGenerator.JFileFolderPicker();
			this.chkEditCreateStatement = new System.Windows.Forms.CheckBox();
			this.panTableName = new System.Windows.Forms.Panel();
			this.panDB = new System.Windows.Forms.Panel();
			this.panTop.SuspendLayout();
			this.gbxNew.SuspendLayout();
			this.panAccess12.SuspendLayout();
			this.gbxExisting.SuspendLayout();
			this.panTableName.SuspendLayout();
			this.panDB.SuspendLayout();
			this.SuspendLayout();
			// 
			// txtTableName
			// 
			this.txtTableName.Location = new System.Drawing.Point(16, 28);
			this.txtTableName.Name = "txtTableName";
			this.txtTableName.Size = new System.Drawing.Size(312, 20);
			this.txtTableName.TabIndex = 3;
			this.txtTableName.TextChanged += new System.EventHandler(this.TextEntries_TextChanged);
			// 
			// label6
			// 
			this.label6.AutoSize = true;
			this.label6.Location = new System.Drawing.Point(4, 10);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(131, 13);
			this.label6.TabIndex = 34;
			this.label6.Text = "Enter Access Table Name";
			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(3, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(254, 13);
			this.label1.TabIndex = 30;
			this.label1.Text = "Enter/Pick the Folder For The Access Database File";
			// 
			// rbAccessPrevious
			// 
			this.rbAccessPrevious.AutoSize = true;
			this.rbAccessPrevious.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rbAccessPrevious.Location = new System.Drawing.Point(142, 12);
			this.rbAccessPrevious.Name = "rbAccessPrevious";
			this.rbAccessPrevious.Size = new System.Drawing.Size(178, 17);
			this.rbAccessPrevious.TabIndex = 1;
			this.rbAccessPrevious.Text = "Previous Access Version (*.mdb)";
			this.rbAccessPrevious.UseVisualStyleBackColor = true;
			// 
			// rbAccess12
			// 
			this.rbAccess12.AutoSize = true;
			this.rbAccess12.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rbAccess12.Checked = true;
			this.rbAccess12.Location = new System.Drawing.Point(6, 12);
			this.rbAccess12.Name = "rbAccess12";
			this.rbAccess12.Size = new System.Drawing.Size(121, 17);
			this.rbAccess12.TabIndex = 0;
			this.rbAccess12.TabStop = true;
			this.rbAccess12.Text = "Access 12 (*.accdb)";
			this.rbAccess12.UseVisualStyleBackColor = true;
			// 
			// txtDBFileName
			// 
			this.txtDBFileName.Location = new System.Drawing.Point(15, 88);
			this.txtDBFileName.Name = "txtDBFileName";
			this.txtDBFileName.Size = new System.Drawing.Size(312, 20);
			this.txtDBFileName.TabIndex = 2;
			this.txtDBFileName.TextChanged += new System.EventHandler(this.TextEntries_TextChanged);
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(3, 70);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(120, 13);
			this.label2.TabIndex = 47;
			this.label2.Text = "Enter Access File Name";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// panTop
			// 
			this.panTop.Controls.Add(this.rbCreateNew);
			this.panTop.Controls.Add(this.rbUseExisting);
			this.panTop.Dock = System.Windows.Forms.DockStyle.Top;
			this.panTop.Location = new System.Drawing.Point(0, 0);
			this.panTop.Name = "panTop";
			this.panTop.Size = new System.Drawing.Size(388, 41);
			this.panTop.TabIndex = 48;
			// 
			// rbCreateNew
			// 
			this.rbCreateNew.AutoSize = true;
			this.rbCreateNew.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rbCreateNew.Location = new System.Drawing.Point(12, 12);
			this.rbCreateNew.Name = "rbCreateNew";
			this.rbCreateNew.Size = new System.Drawing.Size(115, 17);
			this.rbCreateNew.TabIndex = 2;
			this.rbCreateNew.Text = "Insert Into New DB";
			this.rbCreateNew.UseVisualStyleBackColor = true;
			this.rbCreateNew.CheckedChanged += new System.EventHandler(this.rbCreateNew_CheckedChanged);
			// 
			// rbUseExisting
			// 
			this.rbUseExisting.AutoSize = true;
			this.rbUseExisting.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rbUseExisting.Location = new System.Drawing.Point(145, 12);
			this.rbUseExisting.Name = "rbUseExisting";
			this.rbUseExisting.Size = new System.Drawing.Size(129, 17);
			this.rbUseExisting.TabIndex = 1;
			this.rbUseExisting.Text = "Insert Into Existing DB";
			this.rbUseExisting.UseVisualStyleBackColor = true;
			this.rbUseExisting.CheckedChanged += new System.EventHandler(this.rbCreateNew_CheckedChanged);
			// 
			// gbxNew
			// 
			this.gbxNew.Controls.Add(this.panAccess12);
			this.gbxNew.Controls.Add(this.txtDBFileName);
			this.gbxNew.Controls.Add(this.label1);
			this.gbxNew.Controls.Add(this.pickNewFolder);
			this.gbxNew.Controls.Add(this.label2);
			this.gbxNew.Location = new System.Drawing.Point(145, 5);
			this.gbxNew.Name = "gbxNew";
			this.gbxNew.Size = new System.Drawing.Size(220, 163);
			this.gbxNew.TabIndex = 49;
			this.gbxNew.TabStop = false;
			this.gbxNew.Text = "Create New Database";
			this.gbxNew.Visible = false;
			// 
			// panAccess12
			// 
			this.panAccess12.Controls.Add(this.rbAccessPrevious);
			this.panAccess12.Controls.Add(this.rbAccess12);
			this.panAccess12.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.panAccess12.Location = new System.Drawing.Point(3, 121);
			this.panAccess12.Name = "panAccess12";
			this.panAccess12.Size = new System.Drawing.Size(214, 39);
			this.panAccess12.TabIndex = 48;
			// 
			// pickNewFolder
			// 
			this.pickNewFolder.BackColor = System.Drawing.SystemColors.Window;
			this.pickNewFolder.BorderColour = System.Drawing.Color.SteelBlue;
			this.pickNewFolder.FileFilter = "All Files (*.*)|*.*";
			this.pickNewFolder.ForeColor = System.Drawing.SystemColors.WindowText;
			this.pickNewFolder.InitialDirectory = "";
			this.pickNewFolder.Location = new System.Drawing.Point(15, 41);
			this.pickNewFolder.Name = "pickNewFolder";
			this.pickNewFolder.PickMode = JGClassGenerator.JFileFolderPicker.PickModes.Folder;
			this.pickNewFolder.Size = new System.Drawing.Size(312, 21);
			this.pickNewFolder.TabIndex = 1;
			this.pickNewFolder.TextBackColor = System.Drawing.SystemColors.Window;
			this.pickNewFolder.TextFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.pickNewFolder.TextForeColor = System.Drawing.SystemColors.WindowText;
			this.pickNewFolder.ToolTipText = "Click To Browse For Folder";
			this.pickNewFolder.PathSelected += new System.EventHandler<JGClassGenerator.JFileFolderPicker.PathArgs>(this.pickNewFolder_PathSelected);
			// 
			// gbxExisting
			// 
			this.gbxExisting.Controls.Add(this.pickExistingDB);
			this.gbxExisting.Location = new System.Drawing.Point(3, 6);
			this.gbxExisting.Name = "gbxExisting";
			this.gbxExisting.Size = new System.Drawing.Size(114, 163);
			this.gbxExisting.TabIndex = 50;
			this.gbxExisting.TabStop = false;
			this.gbxExisting.Text = "Select Existing Database";
			this.gbxExisting.Visible = false;
			// 
			// pickExistingDB
			// 
			this.pickExistingDB.BackColor = System.Drawing.SystemColors.Window;
			this.pickExistingDB.BorderColour = System.Drawing.Color.SteelBlue;
			this.pickExistingDB.FileFilter = "All Files (*.*)|*.*";
			this.pickExistingDB.ForeColor = System.Drawing.SystemColors.WindowText;
			this.pickExistingDB.InitialDirectory = "";
			this.pickExistingDB.Location = new System.Drawing.Point(15, 21);
			this.pickExistingDB.Name = "pickExistingDB";
			this.pickExistingDB.PickMode = JGClassGenerator.JFileFolderPicker.PickModes.File;
			this.pickExistingDB.Size = new System.Drawing.Size(312, 21);
			this.pickExistingDB.TabIndex = 0;
			this.pickExistingDB.TextBackColor = System.Drawing.SystemColors.Window;
			this.pickExistingDB.TextFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.pickExistingDB.TextForeColor = System.Drawing.SystemColors.WindowText;
			this.pickExistingDB.ToolTipText = "";
			this.pickExistingDB.PathSelected += new System.EventHandler<JGClassGenerator.JFileFolderPicker.PathArgs>(this.pickExistingDB_PathSelected);
			// 
			// chkEditCreateStatement
			// 
			this.chkEditCreateStatement.AutoSize = true;
			this.chkEditCreateStatement.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.chkEditCreateStatement.Location = new System.Drawing.Point(4, 56);
			this.chkEditCreateStatement.Name = "chkEditCreateStatement";
			this.chkEditCreateStatement.Size = new System.Drawing.Size(246, 17);
			this.chkEditCreateStatement.TabIndex = 51;
			this.chkEditCreateStatement.Text = "Edit/View Create Statement Before Processing";
			this.chkEditCreateStatement.UseVisualStyleBackColor = true;
			// 
			// panTableName
			// 
			this.panTableName.Controls.Add(this.txtTableName);
			this.panTableName.Controls.Add(this.chkEditCreateStatement);
			this.panTableName.Controls.Add(this.label6);
			this.panTableName.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.panTableName.Location = new System.Drawing.Point(0, 215);
			this.panTableName.Name = "panTableName";
			this.panTableName.Size = new System.Drawing.Size(388, 94);
			this.panTableName.TabIndex = 52;
			// 
			// panDB
			// 
			this.panDB.Controls.Add(this.gbxExisting);
			this.panDB.Controls.Add(this.gbxNew);
			this.panDB.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panDB.Location = new System.Drawing.Point(0, 41);
			this.panDB.Name = "panDB";
			this.panDB.Size = new System.Drawing.Size(388, 174);
			this.panDB.TabIndex = 53;
			// 
			// FormCreateAccessDB
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ButtonOKText = "Create";
			this.ClientSize = new System.Drawing.Size(388, 366);
			this.Controls.Add(this.panDB);
			this.Controls.Add(this.panTableName);
			this.Controls.Add(this.panTop);
			this.Name = "FormCreateAccessDB";
			this.ShowButtons = true;
			this.Text = "Create Access Table From Field List";
			this.Load += new System.EventHandler(this.FormCreateAccessDB_Load);
			this.Controls.SetChildIndex(this.panTop, 0);
			this.Controls.SetChildIndex(this.panTableName, 0);
			this.Controls.SetChildIndex(this.panDB, 0);
			this.panTop.ResumeLayout(false);
			this.panTop.PerformLayout();
			this.gbxNew.ResumeLayout(false);
			this.gbxNew.PerformLayout();
			this.panAccess12.ResumeLayout(false);
			this.panAccess12.PerformLayout();
			this.gbxExisting.ResumeLayout(false);
			this.panTableName.ResumeLayout(false);
			this.panTableName.PerformLayout();
			this.panDB.ResumeLayout(false);
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.TextBox txtTableName;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.RadioButton rbAccessPrevious;
		private System.Windows.Forms.RadioButton rbAccess12;
		private System.Windows.Forms.TextBox txtDBFileName;
		private System.Windows.Forms.Label label2;
		private JFileFolderPicker pickNewFolder;
		private System.Windows.Forms.Panel panTop;
		private System.Windows.Forms.RadioButton rbCreateNew;
		private System.Windows.Forms.RadioButton rbUseExisting;
		private System.Windows.Forms.GroupBox gbxNew;
		private System.Windows.Forms.GroupBox gbxExisting;
		private JFileFolderPicker pickExistingDB;
		private System.Windows.Forms.Panel panAccess12;
		private System.Windows.Forms.CheckBox chkEditCreateStatement;
		private System.Windows.Forms.Panel panTableName;
		private System.Windows.Forms.Panel panDB;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired
United Kingdom United Kingdom
I have been a keen hobbyist programmer since getting my first computer - a Vic 20 (you had to be able to write programs then since few programs were available and all were expensive).
Retired and now living in Pewsey, Wiltshire, where I spend (far too much of) my time writing computer programs to keep my mind active.

Comments and Discussions