Click here to Skip to main content
15,892,537 members
Articles / Programming Languages / C#

A Generic Tree Collection

Rate me:
Please Sign up or sign in to vote.
4.87/5 (106 votes)
20 Nov 2005CPOL9 min read 229.6K   12.1K   164  
An implementation of a generic tree collection in C#.
namespace TreeTest
{
	partial class ModeMove
	{
		/// <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()
		{
			this.MoveToPrevious = new System.Windows.Forms.Button();
			this.MoveToChild = new System.Windows.Forms.Button();
			this.MoveToNext = new System.Windows.Forms.Button();
			this.MoveToParent = new System.Windows.Forms.Button();
			this.MoveToFirst = new System.Windows.Forms.Button();
			this.MoveToLast = new System.Windows.Forms.Button();
			this.CanMoveToParent = new System.Windows.Forms.CheckBox();
			this.CanMoveToPrevious = new System.Windows.Forms.CheckBox();
			this.CanMoveToNext = new System.Windows.Forms.CheckBox();
			this.CanMoveToChild = new System.Windows.Forms.CheckBox();
			this.CanMoveToFirst = new System.Windows.Forms.CheckBox();
			this.CanMoveToLast = new System.Windows.Forms.CheckBox();
			this.SuspendLayout();
			// 
			// MoveToPrevious
			// 
			this.MoveToPrevious.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.MoveToPrevious.Location = new System.Drawing.Point( 3, 32 );
			this.MoveToPrevious.Name = "MoveToPrevious";
			this.MoveToPrevious.Size = new System.Drawing.Size( 160, 23 );
			this.MoveToPrevious.TabIndex = 38;
			this.MoveToPrevious.Text = "Move To Previous";
			this.MoveToPrevious.Click += new System.EventHandler( this.MoveToPrevious_Click );
			// 
			// MoveToChild
			// 
			this.MoveToChild.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.MoveToChild.Location = new System.Drawing.Point( 3, 90 );
			this.MoveToChild.Name = "MoveToChild";
			this.MoveToChild.Size = new System.Drawing.Size( 160, 23 );
			this.MoveToChild.TabIndex = 40;
			this.MoveToChild.Text = "Move To Child";
			this.MoveToChild.Click += new System.EventHandler( this.MoveToChild_Click );
			// 
			// MoveToNext
			// 
			this.MoveToNext.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.MoveToNext.Location = new System.Drawing.Point( 3, 61 );
			this.MoveToNext.Name = "MoveToNext";
			this.MoveToNext.Size = new System.Drawing.Size( 160, 23 );
			this.MoveToNext.TabIndex = 39;
			this.MoveToNext.Text = "Move To Next";
			this.MoveToNext.Click += new System.EventHandler( this.MoveToNext_Click );
			// 
			// MoveToParent
			// 
			this.MoveToParent.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.MoveToParent.Location = new System.Drawing.Point( 3, 3 );
			this.MoveToParent.Name = "MoveToParent";
			this.MoveToParent.Size = new System.Drawing.Size( 160, 23 );
			this.MoveToParent.TabIndex = 37;
			this.MoveToParent.Text = "Move To Parent";
			this.MoveToParent.Click += new System.EventHandler( this.MoveToParent_Click );
			// 
			// MoveToFirst
			// 
			this.MoveToFirst.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.MoveToFirst.Location = new System.Drawing.Point( 3, 119 );
			this.MoveToFirst.Name = "MoveToFirst";
			this.MoveToFirst.Size = new System.Drawing.Size( 160, 23 );
			this.MoveToFirst.TabIndex = 41;
			this.MoveToFirst.Text = "Move To First";
			this.MoveToFirst.Click += new System.EventHandler( this.MoveToFirst_Click );
			// 
			// MoveToLast
			// 
			this.MoveToLast.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.MoveToLast.Location = new System.Drawing.Point( 3, 148 );
			this.MoveToLast.Name = "MoveToLast";
			this.MoveToLast.Size = new System.Drawing.Size( 160, 23 );
			this.MoveToLast.TabIndex = 42;
			this.MoveToLast.Text = "Move To Last";
			this.MoveToLast.Click += new System.EventHandler( this.MoveToLast_Click );
			// 
			// CanMoveToParent
			// 
			this.CanMoveToParent.AutoSize = true;
			this.CanMoveToParent.Location = new System.Drawing.Point( 192, 7 );
			this.CanMoveToParent.Name = "CanMoveToParent";
			this.CanMoveToParent.Size = new System.Drawing.Size( 15, 14 );
			this.CanMoveToParent.TabIndex = 43;
			this.CanMoveToParent.UseVisualStyleBackColor = true;
			// 
			// CanMoveToPrevious
			// 
			this.CanMoveToPrevious.AutoSize = true;
			this.CanMoveToPrevious.Location = new System.Drawing.Point( 192, 37 );
			this.CanMoveToPrevious.Name = "CanMoveToPrevious";
			this.CanMoveToPrevious.Size = new System.Drawing.Size( 15, 14 );
			this.CanMoveToPrevious.TabIndex = 43;
			this.CanMoveToPrevious.UseVisualStyleBackColor = true;
			// 
			// CanMoveToNext
			// 
			this.CanMoveToNext.AutoSize = true;
			this.CanMoveToNext.Location = new System.Drawing.Point( 192, 66 );
			this.CanMoveToNext.Name = "CanMoveToNext";
			this.CanMoveToNext.Size = new System.Drawing.Size( 15, 14 );
			this.CanMoveToNext.TabIndex = 43;
			this.CanMoveToNext.UseVisualStyleBackColor = true;
			// 
			// CanMoveToChild
			// 
			this.CanMoveToChild.AutoSize = true;
			this.CanMoveToChild.Location = new System.Drawing.Point( 192, 95 );
			this.CanMoveToChild.Name = "CanMoveToChild";
			this.CanMoveToChild.Size = new System.Drawing.Size( 15, 14 );
			this.CanMoveToChild.TabIndex = 43;
			this.CanMoveToChild.UseVisualStyleBackColor = true;
			// 
			// CanMoveToFirst
			// 
			this.CanMoveToFirst.AutoSize = true;
			this.CanMoveToFirst.Location = new System.Drawing.Point( 192, 124 );
			this.CanMoveToFirst.Name = "CanMoveToFirst";
			this.CanMoveToFirst.Size = new System.Drawing.Size( 15, 14 );
			this.CanMoveToFirst.TabIndex = 43;
			this.CanMoveToFirst.UseVisualStyleBackColor = true;
			// 
			// CanMoveToLast
			// 
			this.CanMoveToLast.AutoSize = true;
			this.CanMoveToLast.Location = new System.Drawing.Point( 192, 153 );
			this.CanMoveToLast.Name = "CanMoveToLast";
			this.CanMoveToLast.Size = new System.Drawing.Size( 15, 14 );
			this.CanMoveToLast.TabIndex = 43;
			this.CanMoveToLast.UseVisualStyleBackColor = true;
			// 
			// ModeMove
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add( this.CanMoveToLast );
			this.Controls.Add( this.CanMoveToFirst );
			this.Controls.Add( this.CanMoveToChild );
			this.Controls.Add( this.CanMoveToNext );
			this.Controls.Add( this.CanMoveToPrevious );
			this.Controls.Add( this.CanMoveToParent );
			this.Controls.Add( this.MoveToPrevious );
			this.Controls.Add( this.MoveToChild );
			this.Controls.Add( this.MoveToNext );
			this.Controls.Add( this.MoveToParent );
			this.Controls.Add( this.MoveToFirst );
			this.Controls.Add( this.MoveToLast );
			this.Name = "ModeMove";
			this.Size = new System.Drawing.Size( 238, 317 );
			this.ResumeLayout( false );
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.Button MoveToPrevious;
		private System.Windows.Forms.Button MoveToChild;
		private System.Windows.Forms.Button MoveToNext;
		private System.Windows.Forms.Button MoveToParent;
		private System.Windows.Forms.Button MoveToFirst;
		private System.Windows.Forms.Button MoveToLast;
		private System.Windows.Forms.CheckBox CanMoveToParent;
		private System.Windows.Forms.CheckBox CanMoveToPrevious;
		private System.Windows.Forms.CheckBox CanMoveToNext;
		private System.Windows.Forms.CheckBox CanMoveToChild;
		private System.Windows.Forms.CheckBox CanMoveToFirst;
		private System.Windows.Forms.CheckBox CanMoveToLast;
	}
}

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