Click here to Skip to main content
15,891,907 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.7K   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 FormFieldList
	{
		/// <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()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormFieldList));
			this.gbxFieldDetails = new System.Windows.Forms.GroupBox();
			this.lvFields = new System.Windows.Forms.ListView();
			this.colIcon = new System.Windows.Forms.ColumnHeader();
			this.colFieldName = new System.Windows.Forms.ColumnHeader();
			this.colDBType = new System.Windows.Forms.ColumnHeader();
			this.colFieldLength = new System.Windows.Forms.ColumnHeader();
			this.colAutoInc = new System.Windows.Forms.ColumnHeader();
			this.colIndexData = new System.Windows.Forms.ColumnHeader();
			this.colOwnGet = new System.Windows.Forms.ColumnHeader();
			this.colOwnUpdate = new System.Windows.Forms.ColumnHeader();
			this.colUD = new System.Windows.Forms.ColumnHeader();
			this.colUDType = new System.Windows.Forms.ColumnHeader();
			this.colUDInitValue = new System.Windows.Forms.ColumnHeader();
			this.toolStrip1 = new System.Windows.Forms.ToolStrip();
			this.tsbtnNewField = new System.Windows.Forms.ToolStripButton();
			this.tsbtnEditField = new System.Windows.Forms.ToolStripButton();
			this.tsbtnListEntry = new System.Windows.Forms.ToolStripButton();
			this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
			this.tsbtnDeleteField = new System.Windows.Forms.ToolStripButton();
			this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
			this.tsbtnFieldUp = new System.Windows.Forms.ToolStripButton();
			this.tsbtnFieldDown = new System.Windows.Forms.ToolStripButton();
			this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
			this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
			this.tslblParentRecordNumber = new System.Windows.Forms.ToolStripLabel();
			this.tsbtnGridLines = new System.Windows.Forms.ToolStripButton();
			this.gbxFieldDetails.SuspendLayout();
			this.toolStrip1.SuspendLayout();
			this.SuspendLayout();
			// 
			// gbxFieldDetails
			// 
			this.gbxFieldDetails.Controls.Add(this.lvFields);
			this.gbxFieldDetails.Controls.Add(this.toolStrip1);
			this.gbxFieldDetails.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gbxFieldDetails.Location = new System.Drawing.Point(0, 0);
			this.gbxFieldDetails.Name = "gbxFieldDetails";
			this.gbxFieldDetails.Size = new System.Drawing.Size(1017, 478);
			this.gbxFieldDetails.TabIndex = 2;
			this.gbxFieldDetails.TabStop = false;
			this.gbxFieldDetails.Text = "Field List";
			// 
			// lvFields
			// 
			this.lvFields.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.colIcon,
            this.colFieldName,
            this.colDBType,
            this.colFieldLength,
            this.colAutoInc,
            this.colIndexData,
            this.colOwnGet,
            this.colOwnUpdate,
            this.colUD,
            this.colUDType,
            this.colUDInitValue});
			this.lvFields.Dock = System.Windows.Forms.DockStyle.Fill;
			this.lvFields.FullRowSelect = true;
			this.lvFields.GridLines = true;
			this.lvFields.HideSelection = false;
			this.lvFields.Location = new System.Drawing.Point(3, 16);
			this.lvFields.MultiSelect = false;
			this.lvFields.Name = "lvFields";
			this.lvFields.Size = new System.Drawing.Size(1011, 434);
			this.lvFields.TabIndex = 90;
			this.lvFields.UseCompatibleStateImageBehavior = false;
			this.lvFields.View = System.Windows.Forms.View.Details;
			this.lvFields.ItemActivate += new System.EventHandler(this.lvFields_ItemActivate);
			this.lvFields.SelectedIndexChanged += new System.EventHandler(this.lvFields_SelectedIndexChanged);
			// 
			// colIcon
			// 
			this.colIcon.Text = "";
			this.colIcon.Width = 32;
			// 
			// colFieldName
			// 
			this.colFieldName.Text = "Field Name";
			this.colFieldName.Width = 132;
			// 
			// colDBType
			// 
			this.colDBType.Text = "Db Type Enum";
			this.colDBType.Width = 132;
			// 
			// colFieldLength
			// 
			this.colFieldLength.Text = "Length";
			this.colFieldLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.colFieldLength.Width = 48;
			// 
			// colAutoInc
			// 
			this.colAutoInc.Text = "Auto Inc";
			this.colAutoInc.Width = 56;
			// 
			// colIndexData
			// 
			this.colIndexData.Text = "IndexData";
			this.colIndexData.Width = 64;
			// 
			// colOwnGet
			// 
			this.colOwnGet.Text = "Own Get";
			// 
			// colOwnUpdate
			// 
			this.colOwnUpdate.Text = "Own Updater";
			this.colOwnUpdate.Width = 80;
			// 
			// colUD
			// 
			this.colUD.Text = "UD";
			this.colUD.Width = 36;
			// 
			// colUDType
			// 
			this.colUDType.Text = "User Defined Type";
			this.colUDType.Width = 148;
			// 
			// colUDInitValue
			// 
			this.colUDInitValue.Text = "UD Initial Value";
			this.colUDInitValue.Width = 200;
			// 
			// toolStrip1
			// 
			this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
			this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tsbtnNewField,
            this.tsbtnEditField,
            this.tsbtnListEntry,
            this.toolStripSeparator2,
            this.tsbtnDeleteField,
            this.toolStripSeparator1,
            this.tsbtnFieldUp,
            this.tsbtnFieldDown,
            this.toolStripSeparator3,
            this.toolStripLabel1,
            this.tslblParentRecordNumber,
            this.tsbtnGridLines});
			this.toolStrip1.Location = new System.Drawing.Point(3, 450);
			this.toolStrip1.Name = "toolStrip1";
			this.toolStrip1.Size = new System.Drawing.Size(1011, 25);
			this.toolStrip1.TabIndex = 6;
			this.toolStrip1.Text = "toolStrip1";
			// 
			// tsbtnNewField
			// 
			this.tsbtnNewField.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnNewField.Image")));
			this.tsbtnNewField.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnNewField.Name = "tsbtnNewField";
			this.tsbtnNewField.Size = new System.Drawing.Size(73, 22);
			this.tsbtnNewField.Text = "New Field";
			this.tsbtnNewField.Click += new System.EventHandler(this.tsbtnNewField_Click);
			// 
			// tsbtnEditField
			// 
			this.tsbtnEditField.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnEditField.Image")));
			this.tsbtnEditField.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnEditField.Name = "tsbtnEditField";
			this.tsbtnEditField.Size = new System.Drawing.Size(70, 22);
			this.tsbtnEditField.Text = "Edit Field";
			this.tsbtnEditField.Click += new System.EventHandler(this.tsbtnEditField_Click);
			// 
			// tsbtnListEntry
			// 
			this.tsbtnListEntry.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnListEntry.Image")));
			this.tsbtnListEntry.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnListEntry.Name = "tsbtnListEntry";
			this.tsbtnListEntry.Size = new System.Drawing.Size(72, 22);
			this.tsbtnListEntry.Text = "List Entry";
			this.tsbtnListEntry.Click += new System.EventHandler(this.tsbtnListEntry_Click);
			// 
			// toolStripSeparator2
			// 
			this.toolStripSeparator2.Name = "toolStripSeparator2";
			this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
			// 
			// tsbtnDeleteField
			// 
			this.tsbtnDeleteField.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnDeleteField.Image")));
			this.tsbtnDeleteField.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnDeleteField.Name = "tsbtnDeleteField";
			this.tsbtnDeleteField.Size = new System.Drawing.Size(83, 22);
			this.tsbtnDeleteField.Text = "Delete Field";
			this.tsbtnDeleteField.Click += new System.EventHandler(this.tsbtnDeleteField_Click);
			// 
			// toolStripSeparator1
			// 
			this.toolStripSeparator1.Name = "toolStripSeparator1";
			this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
			// 
			// tsbtnFieldUp
			// 
			this.tsbtnFieldUp.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnFieldUp.Image")));
			this.tsbtnFieldUp.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnFieldUp.Name = "tsbtnFieldUp";
			this.tsbtnFieldUp.Size = new System.Drawing.Size(94, 22);
			this.tsbtnFieldUp.Text = "Move Field Up";
			this.tsbtnFieldUp.Click += new System.EventHandler(this.tsbtnFieldUp_Click);
			// 
			// tsbtnFieldDown
			// 
			this.tsbtnFieldDown.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnFieldDown.Image")));
			this.tsbtnFieldDown.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnFieldDown.Name = "tsbtnFieldDown";
			this.tsbtnFieldDown.Size = new System.Drawing.Size(108, 22);
			this.tsbtnFieldDown.Text = "Move Field Down";
			this.tsbtnFieldDown.Click += new System.EventHandler(this.tsbtnFieldDown_Click);
			// 
			// toolStripSeparator3
			// 
			this.toolStripSeparator3.Name = "toolStripSeparator3";
			this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
			// 
			// toolStripLabel1
			// 
			this.toolStripLabel1.Name = "toolStripLabel1";
			this.toolStripLabel1.Size = new System.Drawing.Size(118, 22);
			this.toolStripLabel1.Text = "Project Record Number";
			// 
			// tslblParentRecordNumber
			// 
			this.tslblParentRecordNumber.Name = "tslblParentRecordNumber";
			this.tslblParentRecordNumber.Size = new System.Drawing.Size(13, 22);
			this.tslblParentRecordNumber.Text = "0";
			// 
			// tsbtnGridLines
			// 
			this.tsbtnGridLines.Checked = true;
			this.tsbtnGridLines.CheckOnClick = true;
			this.tsbtnGridLines.CheckState = System.Windows.Forms.CheckState.Checked;
			this.tsbtnGridLines.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnGridLines.Image")));
			this.tsbtnGridLines.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnGridLines.Name = "tsbtnGridLines";
			this.tsbtnGridLines.Size = new System.Drawing.Size(91, 22);
			this.tsbtnGridLines.Text = "Hide Gridlines";
			this.tsbtnGridLines.CheckedChanged += new System.EventHandler(this.tsbtnGridLines_CheckedChanged);
			// 
			// FormFieldList
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(1017, 535);
			this.Controls.Add(this.gbxFieldDetails);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
			this.Name = "FormFieldList";
			this.ShowButtons = true;
			this.Text = "Field List";
			this.Controls.SetChildIndex(this.gbxFieldDetails, 0);
			this.gbxFieldDetails.ResumeLayout(false);
			this.gbxFieldDetails.PerformLayout();
			this.toolStrip1.ResumeLayout(false);
			this.toolStrip1.PerformLayout();
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.GroupBox gbxFieldDetails;
		private System.Windows.Forms.ListView lvFields;
		private System.Windows.Forms.ColumnHeader colIcon;
		private System.Windows.Forms.ColumnHeader colFieldName;
		private System.Windows.Forms.ColumnHeader colDBType;
		private System.Windows.Forms.ColumnHeader colFieldLength;
		private System.Windows.Forms.ColumnHeader colAutoInc;
		private System.Windows.Forms.ColumnHeader colIndexData;
		private System.Windows.Forms.ColumnHeader colOwnGet;
		private System.Windows.Forms.ColumnHeader colOwnUpdate;
		private System.Windows.Forms.ColumnHeader colUD;
		private System.Windows.Forms.ColumnHeader colUDType;
		private System.Windows.Forms.ColumnHeader colUDInitValue;
		private System.Windows.Forms.ToolStrip toolStrip1;
		private System.Windows.Forms.ToolStripButton tsbtnNewField;
		private System.Windows.Forms.ToolStripButton tsbtnEditField;
		private System.Windows.Forms.ToolStripButton tsbtnListEntry;
		private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
		private System.Windows.Forms.ToolStripButton tsbtnDeleteField;
		private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
		private System.Windows.Forms.ToolStripButton tsbtnFieldUp;
		private System.Windows.Forms.ToolStripButton tsbtnFieldDown;
		private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
		private System.Windows.Forms.ToolStripLabel toolStripLabel1;
		private System.Windows.Forms.ToolStripLabel tslblParentRecordNumber;
		private System.Windows.Forms.ToolStripButton tsbtnGridLines;
	}
}

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