Click here to Skip to main content
15,896,111 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.8K   2.5K   167  
An application that creates a C# class to read/write data to/from an Access, SQLite, or XML database.
namespace JGCreateDataClasses
{
	partial class JSavedProjectsPanel
	{
		/// <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 Component 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(JSavedProjectsPanel));
			this.splitContainer1 = new System.Windows.Forms.SplitContainer();
			this.lstSavedProjects = new System.Windows.Forms.ListBox();
			this.splitContainer2 = new System.Windows.Forms.SplitContainer();
			this.gbxDetails = new System.Windows.Forms.GroupBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.lblTableName = new System.Windows.Forms.Label();
			this.lblDataType = new System.Windows.Forms.Label();
			this.lblDBPath = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.lblProjectName = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.lblClassNameSpace = new System.Windows.Forms.Label();
			this.gbxFieldNames = new System.Windows.Forms.GroupBox();
			this.lstFieldNames = new System.Windows.Forms.ListBox();
			this.toolStrip1 = new System.Windows.Forms.ToolStrip();
			this.tsbtnLoad = new System.Windows.Forms.ToolStripButton();
			this.tsbtnDelete = new System.Windows.Forms.ToolStripButton();
			this.tsbtnRefreshList = new System.Windows.Forms.ToolStripButton();
			this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
			this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
			this.tslblRecNum = new System.Windows.Forms.ToolStripLabel();
			this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
			this.tslblLastUpdated = new System.Windows.Forms.ToolStripLabel();
			this.gbxMain = new System.Windows.Forms.GroupBox();
			this.splitContainer1.Panel1.SuspendLayout();
			this.splitContainer1.Panel2.SuspendLayout();
			this.splitContainer1.SuspendLayout();
			this.splitContainer2.Panel1.SuspendLayout();
			this.splitContainer2.Panel2.SuspendLayout();
			this.splitContainer2.SuspendLayout();
			this.gbxDetails.SuspendLayout();
			this.gbxFieldNames.SuspendLayout();
			this.toolStrip1.SuspendLayout();
			this.gbxMain.SuspendLayout();
			this.SuspendLayout();
			// 
			// splitContainer1
			// 
			this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.splitContainer1.Location = new System.Drawing.Point(3, 16);
			this.splitContainer1.Name = "splitContainer1";
			// 
			// splitContainer1.Panel1
			// 
			this.splitContainer1.Panel1.Controls.Add(this.lstSavedProjects);
			// 
			// splitContainer1.Panel2
			// 
			this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
			this.splitContainer1.Size = new System.Drawing.Size(788, 401);
			this.splitContainer1.SplitterDistance = 239;
			this.splitContainer1.TabIndex = 0;
			// 
			// lstSavedProjects
			// 
			this.lstSavedProjects.Dock = System.Windows.Forms.DockStyle.Fill;
			this.lstSavedProjects.FormattingEnabled = true;
			this.lstSavedProjects.Location = new System.Drawing.Point(0, 0);
			this.lstSavedProjects.Name = "lstSavedProjects";
			this.lstSavedProjects.Size = new System.Drawing.Size(239, 394);
			this.lstSavedProjects.Sorted = true;
			this.lstSavedProjects.TabIndex = 0;
			this.lstSavedProjects.SelectedIndexChanged += new System.EventHandler(this.lstSavedProjects_SelectedIndexChanged);
			// 
			// splitContainer2
			// 
			this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.splitContainer2.Location = new System.Drawing.Point(0, 0);
			this.splitContainer2.Name = "splitContainer2";
			// 
			// splitContainer2.Panel1
			// 
			this.splitContainer2.Panel1.Controls.Add(this.gbxDetails);
			// 
			// splitContainer2.Panel2
			// 
			this.splitContainer2.Panel2.Controls.Add(this.gbxFieldNames);
			this.splitContainer2.Size = new System.Drawing.Size(545, 401);
			this.splitContainer2.SplitterDistance = 366;
			this.splitContainer2.TabIndex = 0;
			// 
			// gbxDetails
			// 
			this.gbxDetails.Controls.Add(this.label2);
			this.gbxDetails.Controls.Add(this.label1);
			this.gbxDetails.Controls.Add(this.lblTableName);
			this.gbxDetails.Controls.Add(this.lblDataType);
			this.gbxDetails.Controls.Add(this.lblDBPath);
			this.gbxDetails.Controls.Add(this.label4);
			this.gbxDetails.Controls.Add(this.lblProjectName);
			this.gbxDetails.Controls.Add(this.label7);
			this.gbxDetails.Controls.Add(this.label3);
			this.gbxDetails.Controls.Add(this.lblClassNameSpace);
			this.gbxDetails.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gbxDetails.Location = new System.Drawing.Point(0, 0);
			this.gbxDetails.Name = "gbxDetails";
			this.gbxDetails.Size = new System.Drawing.Size(366, 401);
			this.gbxDetails.TabIndex = 14;
			this.gbxDetails.TabStop = false;
			this.gbxDetails.Text = "Selected Project Details";
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(8, 144);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(65, 13);
			this.label2.TabIndex = 16;
			this.label2.Text = "Table Name";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(8, 96);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(78, 13);
			this.label1.TabIndex = 15;
			this.label1.Text = "Database Path";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblTableName
			// 
			this.lblTableName.AutoSize = true;
			this.lblTableName.Location = new System.Drawing.Point(8, 168);
			this.lblTableName.Name = "lblTableName";
			this.lblTableName.Size = new System.Drawing.Size(65, 13);
			this.lblTableName.TabIndex = 14;
			this.lblTableName.Text = "Table Name";
			this.lblTableName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblDataType
			// 
			this.lblDataType.AutoSize = true;
			this.lblDataType.Location = new System.Drawing.Point(112, 73);
			this.lblDataType.Name = "lblDataType";
			this.lblDataType.Size = new System.Drawing.Size(67, 13);
			this.lblDataType.TabIndex = 12;
			this.lblDataType.Text = "Data Source";
			this.lblDataType.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblDBPath
			// 
			this.lblDBPath.AutoSize = true;
			this.lblDBPath.Location = new System.Drawing.Point(8, 120);
			this.lblDBPath.Name = "lblDBPath";
			this.lblDBPath.Size = new System.Drawing.Size(78, 13);
			this.lblDBPath.TabIndex = 13;
			this.lblDBPath.Text = "Database Path";
			this.lblDBPath.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label4
			// 
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(8, 48);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(94, 13);
			this.label4.TabIndex = 5;
			this.label4.Text = "Class NameSpace";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblProjectName
			// 
			this.lblProjectName.AutoSize = true;
			this.lblProjectName.Location = new System.Drawing.Point(112, 24);
			this.lblProjectName.Name = "lblProjectName";
			this.lblProjectName.Size = new System.Drawing.Size(71, 13);
			this.lblProjectName.TabIndex = 8;
			this.lblProjectName.Text = "Project Name";
			this.lblProjectName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label7
			// 
			this.label7.AutoSize = true;
			this.label7.Location = new System.Drawing.Point(8, 72);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(67, 13);
			this.label7.TabIndex = 11;
			this.label7.Text = "Data Source";
			this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(8, 24);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(71, 13);
			this.label3.TabIndex = 4;
			this.label3.Text = "Project Name";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// lblClassNameSpace
			// 
			this.lblClassNameSpace.AutoSize = true;
			this.lblClassNameSpace.Location = new System.Drawing.Point(112, 50);
			this.lblClassNameSpace.Name = "lblClassNameSpace";
			this.lblClassNameSpace.Size = new System.Drawing.Size(94, 13);
			this.lblClassNameSpace.TabIndex = 9;
			this.lblClassNameSpace.Text = "Class NameSpace";
			this.lblClassNameSpace.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// gbxFieldNames
			// 
			this.gbxFieldNames.Controls.Add(this.lstFieldNames);
			this.gbxFieldNames.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gbxFieldNames.Location = new System.Drawing.Point(0, 0);
			this.gbxFieldNames.Name = "gbxFieldNames";
			this.gbxFieldNames.Size = new System.Drawing.Size(175, 401);
			this.gbxFieldNames.TabIndex = 0;
			this.gbxFieldNames.TabStop = false;
			this.gbxFieldNames.Text = "Field Names";
			// 
			// lstFieldNames
			// 
			this.lstFieldNames.Dock = System.Windows.Forms.DockStyle.Fill;
			this.lstFieldNames.FormattingEnabled = true;
			this.lstFieldNames.Location = new System.Drawing.Point(3, 16);
			this.lstFieldNames.Name = "lstFieldNames";
			this.lstFieldNames.Size = new System.Drawing.Size(169, 381);
			this.lstFieldNames.TabIndex = 11;
			// 
			// 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.tsbtnLoad,
            this.tsbtnDelete,
            this.tsbtnRefreshList,
            this.toolStripSeparator1,
            this.toolStripLabel1,
            this.tslblRecNum,
            this.toolStripLabel2,
            this.tslblLastUpdated});
			this.toolStrip1.Location = new System.Drawing.Point(3, 417);
			this.toolStrip1.Name = "toolStrip1";
			this.toolStrip1.Size = new System.Drawing.Size(788, 25);
			this.toolStrip1.TabIndex = 12;
			this.toolStrip1.Text = "toolStrip1";
			// 
			// tsbtnLoad
			// 
			this.tsbtnLoad.Enabled = false;
			this.tsbtnLoad.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnLoad.Image")));
			this.tsbtnLoad.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnLoad.Name = "tsbtnLoad";
			this.tsbtnLoad.Size = new System.Drawing.Size(87, 22);
			this.tsbtnLoad.Text = "Load Project";
			this.tsbtnLoad.Click += new System.EventHandler(this.tsbtnLoad_Click);
			// 
			// tsbtnDelete
			// 
			this.tsbtnDelete.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
			this.tsbtnDelete.Enabled = false;
			this.tsbtnDelete.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnDelete.Image")));
			this.tsbtnDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnDelete.Name = "tsbtnDelete";
			this.tsbtnDelete.Size = new System.Drawing.Size(95, 22);
			this.tsbtnDelete.Text = "Delete Record";
			this.tsbtnDelete.Click += new System.EventHandler(this.tsbtnDelete_Click);
			// 
			// tsbtnRefreshList
			// 
			this.tsbtnRefreshList.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnRefreshList.Image")));
			this.tsbtnRefreshList.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnRefreshList.Name = "tsbtnRefreshList";
			this.tsbtnRefreshList.Size = new System.Drawing.Size(84, 22);
			this.tsbtnRefreshList.Text = "Refresh List";
			this.tsbtnRefreshList.Click += new System.EventHandler(this.tsbtnRefreshList_Click);
			// 
			// toolStripSeparator1
			// 
			this.toolStripSeparator1.Name = "toolStripSeparator1";
			this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
			// 
			// toolStripLabel1
			// 
			this.toolStripLabel1.Name = "toolStripLabel1";
			this.toolStripLabel1.Size = new System.Drawing.Size(85, 22);
			this.toolStripLabel1.Text = "Record Number:";
			// 
			// tslblRecNum
			// 
			this.tslblRecNum.Name = "tslblRecNum";
			this.tslblRecNum.Size = new System.Drawing.Size(13, 22);
			this.tslblRecNum.Text = "0";
			// 
			// toolStripLabel2
			// 
			this.toolStripLabel2.Name = "toolStripLabel2";
			this.toolStripLabel2.Size = new System.Drawing.Size(75, 22);
			this.toolStripLabel2.Text = "Last Updated:";
			// 
			// tslblLastUpdated
			// 
			this.tslblLastUpdated.Name = "tslblLastUpdated";
			this.tslblLastUpdated.Size = new System.Drawing.Size(71, 22);
			this.tslblLastUpdated.Text = "Last Updated";
			// 
			// gbxMain
			// 
			this.gbxMain.BackColor = System.Drawing.SystemColors.Window;
			this.gbxMain.Controls.Add(this.splitContainer1);
			this.gbxMain.Controls.Add(this.toolStrip1);
			this.gbxMain.Dock = System.Windows.Forms.DockStyle.Fill;
			this.gbxMain.Location = new System.Drawing.Point(0, 0);
			this.gbxMain.Name = "gbxMain";
			this.gbxMain.Size = new System.Drawing.Size(794, 445);
			this.gbxMain.TabIndex = 1;
			this.gbxMain.TabStop = false;
			this.gbxMain.Text = "Saved Projects";
			// 
			// JSavedProjectsPanel
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.gbxMain);
			this.Name = "JSavedProjectsPanel";
			this.Size = new System.Drawing.Size(794, 445);
			this.splitContainer1.Panel1.ResumeLayout(false);
			this.splitContainer1.Panel2.ResumeLayout(false);
			this.splitContainer1.ResumeLayout(false);
			this.splitContainer2.Panel1.ResumeLayout(false);
			this.splitContainer2.Panel2.ResumeLayout(false);
			this.splitContainer2.ResumeLayout(false);
			this.gbxDetails.ResumeLayout(false);
			this.gbxDetails.PerformLayout();
			this.gbxFieldNames.ResumeLayout(false);
			this.toolStrip1.ResumeLayout(false);
			this.toolStrip1.PerformLayout();
			this.gbxMain.ResumeLayout(false);
			this.gbxMain.PerformLayout();
			this.ResumeLayout(false);

		}

		#endregion

		private System.Windows.Forms.SplitContainer splitContainer1;
		private System.Windows.Forms.ListBox lstSavedProjects;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label lblClassNameSpace;
		private System.Windows.Forms.Label lblProjectName;
		private System.Windows.Forms.ListBox lstFieldNames;
		private System.Windows.Forms.ToolStrip toolStrip1;
		private System.Windows.Forms.ToolStripButton tsbtnLoad;
		private System.Windows.Forms.ToolStripButton tsbtnDelete;
		private System.Windows.Forms.Label lblDataType;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.ToolStripLabel tslblRecNum;
		private System.Windows.Forms.ToolStripLabel tslblLastUpdated;
		private System.Windows.Forms.Label lblDBPath;
		private System.Windows.Forms.Label lblTableName;
		private System.Windows.Forms.GroupBox gbxMain;
		private System.Windows.Forms.SplitContainer splitContainer2;
		private System.Windows.Forms.GroupBox gbxFieldNames;
		private System.Windows.Forms.GroupBox gbxDetails;
		private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
		private System.Windows.Forms.ToolStripLabel toolStripLabel1;
		private System.Windows.Forms.ToolStripLabel toolStripLabel2;
		private System.Windows.Forms.ToolStripButton tsbtnRefreshList;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
	}
}

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