Click here to Skip to main content
15,884,425 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.4K   2.5K   167  
An application that creates a C# class to read/write data to/from an Access, SQLite, or XML database.
namespace JGTextEditors
{
	partial class JTextEditor
	{
		/// <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(JTextEditor));
			this.tsMenu = new System.Windows.Forms.ToolStrip();
			this.tsbtnNew = new System.Windows.Forms.ToolStripButton();
			this.tsbtnOpen = new System.Windows.Forms.ToolStripButton();
			this.tsbtnSave = new System.Windows.Forms.ToolStripButton();
			this.tsbtnSaveAs = new System.Windows.Forms.ToolStripButton();
			this.sepSave = new System.Windows.Forms.ToolStripSeparator();
			this.tsbtnCut = new System.Windows.Forms.ToolStripButton();
			this.tsbtnCopy = new System.Windows.Forms.ToolStripButton();
			this.tsbtnPaste = new System.Windows.Forms.ToolStripButton();
			this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
			this.tsbtnCopyAll = new System.Windows.Forms.ToolStripButton();
			this.toolStripSeparator14 = new System.Windows.Forms.ToolStripSeparator();
			this.tsbtnWordWrap = new System.Windows.Forms.ToolStripButton();
			this.panEdit = new System.Windows.Forms.Panel();
			this.rtfMain = new System.Windows.Forms.RichTextBox();
			this.staStatus = new System.Windows.Forms.StatusStrip();
			this.tslblMessage = new System.Windows.Forms.ToolStripStatusLabel();
			this.panBody = new System.Windows.Forms.Panel();
			this.tsMenu.SuspendLayout();
			this.panEdit.SuspendLayout();
			this.staStatus.SuspendLayout();
			this.panBody.SuspendLayout();
			this.SuspendLayout();
			// 
			// tsMenu
			// 
			this.tsMenu.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
			this.tsMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tsbtnNew,
            this.tsbtnOpen,
            this.tsbtnSave,
            this.tsbtnSaveAs,
            this.sepSave,
            this.tsbtnCut,
            this.tsbtnCopy,
            this.tsbtnPaste,
            this.toolStripSeparator4,
            this.tsbtnCopyAll,
            this.toolStripSeparator14,
            this.tsbtnWordWrap});
			this.tsMenu.Location = new System.Drawing.Point(0, 0);
			this.tsMenu.Name = "tsMenu";
			this.tsMenu.Size = new System.Drawing.Size(760, 25);
			this.tsMenu.TabIndex = 5;
			this.tsMenu.Text = "toolStrip1";
			// 
			// tsbtnNew
			// 
			this.tsbtnNew.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.tsbtnNew.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnNew.Image")));
			this.tsbtnNew.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnNew.Name = "tsbtnNew";
			this.tsbtnNew.Size = new System.Drawing.Size(23, 22);
			this.tsbtnNew.Click += new System.EventHandler(this.tsbtnNew_Click);
			// 
			// tsbtnOpen
			// 
			this.tsbtnOpen.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.tsbtnOpen.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnOpen.Image")));
			this.tsbtnOpen.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnOpen.Name = "tsbtnOpen";
			this.tsbtnOpen.Size = new System.Drawing.Size(23, 22);
			this.tsbtnOpen.Click += new System.EventHandler(this.tsbtnOpen_Click);
			// 
			// tsbtnSave
			// 
			this.tsbtnSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.tsbtnSave.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnSave.Image")));
			this.tsbtnSave.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnSave.Name = "tsbtnSave";
			this.tsbtnSave.Size = new System.Drawing.Size(23, 22);
			this.tsbtnSave.Click += new System.EventHandler(this.tsbtnSave_Click);
			// 
			// tsbtnSaveAs
			// 
			this.tsbtnSaveAs.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.tsbtnSaveAs.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnSaveAs.Image")));
			this.tsbtnSaveAs.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnSaveAs.Name = "tsbtnSaveAs";
			this.tsbtnSaveAs.Size = new System.Drawing.Size(23, 22);
			this.tsbtnSaveAs.Click += new System.EventHandler(this.tsbtnSaveAs_Click);
			// 
			// sepSave
			// 
			this.sepSave.Name = "sepSave";
			this.sepSave.Size = new System.Drawing.Size(6, 25);
			// 
			// tsbtnCut
			// 
			this.tsbtnCut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.tsbtnCut.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnCut.Image")));
			this.tsbtnCut.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnCut.Name = "tsbtnCut";
			this.tsbtnCut.Size = new System.Drawing.Size(23, 22);
			this.tsbtnCut.Click += new System.EventHandler(this.tsbtnCut_Click);
			// 
			// tsbtnCopy
			// 
			this.tsbtnCopy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.tsbtnCopy.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnCopy.Image")));
			this.tsbtnCopy.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnCopy.Name = "tsbtnCopy";
			this.tsbtnCopy.Size = new System.Drawing.Size(23, 22);
			this.tsbtnCopy.Click += new System.EventHandler(this.tsbtnCopy_Click);
			// 
			// tsbtnPaste
			// 
			this.tsbtnPaste.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.tsbtnPaste.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnPaste.Image")));
			this.tsbtnPaste.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnPaste.Name = "tsbtnPaste";
			this.tsbtnPaste.Size = new System.Drawing.Size(23, 22);
			this.tsbtnPaste.Click += new System.EventHandler(this.tsbtnPaste_Click);
			// 
			// toolStripSeparator4
			// 
			this.toolStripSeparator4.Name = "toolStripSeparator4";
			this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25);
			// 
			// tsbtnCopyAll
			// 
			this.tsbtnCopyAll.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
			this.tsbtnCopyAll.Image = ((System.Drawing.Image)(resources.GetObject("tsbtnCopyAll.Image")));
			this.tsbtnCopyAll.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnCopyAll.Name = "tsbtnCopyAll";
			this.tsbtnCopyAll.Size = new System.Drawing.Size(23, 22);
			this.tsbtnCopyAll.ToolTipText = "Select And Copy All";
			this.tsbtnCopyAll.Click += new System.EventHandler(this.tsbtnCopyAll_Click);
			// 
			// toolStripSeparator14
			// 
			this.toolStripSeparator14.Name = "toolStripSeparator14";
			this.toolStripSeparator14.Size = new System.Drawing.Size(6, 25);
			// 
			// tsbtnWordWrap
			// 
			this.tsbtnWordWrap.Checked = true;
			this.tsbtnWordWrap.CheckOnClick = true;
			this.tsbtnWordWrap.CheckState = System.Windows.Forms.CheckState.Checked;
			this.tsbtnWordWrap.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			this.tsbtnWordWrap.ImageTransparentColor = System.Drawing.Color.Magenta;
			this.tsbtnWordWrap.Name = "tsbtnWordWrap";
			this.tsbtnWordWrap.Size = new System.Drawing.Size(83, 22);
			this.tsbtnWordWrap.Text = "Word Wrap On";
			this.tsbtnWordWrap.CheckedChanged += new System.EventHandler(this.tsbtnWordWrap_CheckedChanged);
			// 
			// panEdit
			// 
			this.panEdit.Controls.Add(this.rtfMain);
			this.panEdit.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panEdit.Location = new System.Drawing.Point(0, 0);
			this.panEdit.Name = "panEdit";
			this.panEdit.Size = new System.Drawing.Size(760, 468);
			this.panEdit.TabIndex = 7;
			// 
			// rtfMain
			// 
			this.rtfMain.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.rtfMain.Dock = System.Windows.Forms.DockStyle.Fill;
			this.rtfMain.Location = new System.Drawing.Point(0, 0);
			this.rtfMain.Name = "rtfMain";
			this.rtfMain.Size = new System.Drawing.Size(760, 468);
			this.rtfMain.TabIndex = 0;
			this.rtfMain.Text = "";
			this.rtfMain.KeyUp += new System.Windows.Forms.KeyEventHandler(this.rtfMain_KeyUp);
			this.rtfMain.TextChanged += new System.EventHandler(this.rtfMain_TextChanged);
			// 
			// staStatus
			// 
			this.staStatus.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tslblMessage});
			this.staStatus.Location = new System.Drawing.Point(0, 468);
			this.staStatus.Name = "staStatus";
			this.staStatus.Size = new System.Drawing.Size(760, 22);
			this.staStatus.SizingGrip = false;
			this.staStatus.TabIndex = 8;
			this.staStatus.Text = "statusStrip1";
			// 
			// tslblMessage
			// 
			this.tslblMessage.Name = "tslblMessage";
			this.tslblMessage.Size = new System.Drawing.Size(745, 17);
			this.tslblMessage.Spring = true;
			this.tslblMessage.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// panBody
			// 
			this.panBody.Controls.Add(this.panEdit);
			this.panBody.Controls.Add(this.staStatus);
			this.panBody.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panBody.Location = new System.Drawing.Point(0, 25);
			this.panBody.Name = "panBody";
			this.panBody.Size = new System.Drawing.Size(760, 490);
			this.panBody.TabIndex = 9;
			// 
			// JTextEditor
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.panBody);
			this.Controls.Add(this.tsMenu);
			this.Name = "JTextEditor";
			this.Size = new System.Drawing.Size(760, 515);
			this.tsMenu.ResumeLayout(false);
			this.tsMenu.PerformLayout();
			this.panEdit.ResumeLayout(false);
			this.staStatus.ResumeLayout(false);
			this.staStatus.PerformLayout();
			this.panBody.ResumeLayout(false);
			this.panBody.PerformLayout();
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.ToolStripButton tsbtnNew;
		private System.Windows.Forms.ToolStripButton tsbtnOpen;
		private System.Windows.Forms.ToolStripButton tsbtnSave;
		private System.Windows.Forms.ToolStripSeparator sepSave;
		private System.Windows.Forms.ToolStripButton tsbtnCut;
		private System.Windows.Forms.ToolStripButton tsbtnCopy;
		private System.Windows.Forms.ToolStripButton tsbtnPaste;
		private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
		private System.Windows.Forms.ToolStripButton tsbtnSaveAs;
		private System.Windows.Forms.Panel panEdit;
		private System.Windows.Forms.ToolStripButton tsbtnCopyAll;
		private System.Windows.Forms.ToolStripSeparator toolStripSeparator14;
		private System.Windows.Forms.StatusStrip staStatus;
		private System.Windows.Forms.ToolStripStatusLabel tslblMessage;
		private System.Windows.Forms.Panel panBody;
		internal System.Windows.Forms.ToolStrip tsMenu;
		private System.Windows.Forms.RichTextBox rtfMain;
		private System.Windows.Forms.ToolStripButton tsbtnWordWrap;
	}
}

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