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

PetriDish: Multi-threading for performance in C#

Rate me:
Please Sign up or sign in to vote.
4.95/5 (46 votes)
28 May 2008CPOL13 min read 126.3K   1.3K   144  
An investigation into advanced concurrent programming.
namespace PetriDish
{
	partial class Form1
	{
		/// <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( Form1 ) );
			this._ToolStrip = new System.Windows.Forms.ToolStrip();
			this._ShowKey = new System.Windows.Forms.ToolStripDropDownButton();
			this._ToolStrip.SuspendLayout();
			this.SuspendLayout();
			// 
			// _ToolStrip
			// 
			this._ToolStrip.Items.AddRange( new System.Windows.Forms.ToolStripItem[] {
            this._ShowKey} );
			this._ToolStrip.Location = new System.Drawing.Point( 0, 0 );
			this._ToolStrip.Name = "_ToolStrip";
			this._ToolStrip.Size = new System.Drawing.Size( 498, 25 );
			this._ToolStrip.TabIndex = 0;
			this._ToolStrip.Text = "toolStrip1";
			// 
			// _ShowKey
			// 
			this._ShowKey.AutoToolTip = false;
			this._ShowKey.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			this._ShowKey.Image = ( ( System.Drawing.Image ) ( resources.GetObject( "_ShowKey.Image" ) ) );
			this._ShowKey.ImageTransparentColor = System.Drawing.Color.Magenta;
			this._ShowKey.Name = "_ShowKey";
			this._ShowKey.Size = new System.Drawing.Size( 67, 22 );
			this._ShowKey.Text = "Show &Key";
			// 
			// Form1
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size( 498, 698 );
			this.Controls.Add( this._ToolStrip );
			this.Name = "Form1";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "PetriDish by Nick Butler";
			this._ToolStrip.ResumeLayout( false );
			this._ToolStrip.PerformLayout();
			this.ResumeLayout( false );
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.ToolStrip _ToolStrip;
		private System.Windows.Forms.ToolStripDropDownButton _ShowKey;
	}
}

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
United Kingdom United Kingdom
I discovered C# and .NET 1.0 Beta 1 in late 2000 and loved them immediately.
I have been writing software professionally in C# ever since

In real life, I have spent 3 years travelling abroad,
I have held a UK Private Pilots Licence for 20 years,
and I am a PADI Divemaster.

I now live near idyllic Bournemouth in England.

I can work 'virtually' anywhere!

Comments and Discussions