Click here to Skip to main content
12,454,477 members (55,663 online)
Click here to Skip to main content

Stats

86.4K views
1K downloads
143 bookmarked
Posted

PetriDish: Multi-threading for performance in C#

, 28 May 2008 CPOL
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)

Share

About the Author

Nicholas Butler
United Kingdom United Kingdom

I built my first computer, a Sinclair ZX80, on my 11th birthday in 1980.
In 1992, I completed my Computer Science degree and built my first PC.
I discovered C# and .NET 1.0 Beta 1 in late 2000 and loved them immediately.
I have been writing concurrent software professionally, using multi-processor machines, since 1995.

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.

If you would like help with multithreading, please contact me via my website:


I can work 'virtually' anywhere!

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160826.1 | Last Updated 28 May 2008
Article Copyright 2008 by Nicholas Butler
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid