Click here to Skip to main content
15,886,801 members
Articles / Multimedia / GDI+

C# Application to Create and Recognize Mouse Gestures (.NET)

Rate me:
Please Sign up or sign in to vote.
4.82/5 (39 votes)
17 Mar 2008CPOL5 min read 221.4K   8.1K   144  
This program can create and recognize mouse gestures.
namespace GestureRecognizer
{
	partial class PerformancesForm
	{
		/// <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()
		{
			this.PerformancesDataGridView = new System.Windows.Forms.DataGridView();
			this.GestureColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.ThresholdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.PrecisionColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.RecallColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.TruePositivesColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.FalsePositivesColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.FalseNegativesColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			((System.ComponentModel.ISupportInitialize)(this.PerformancesDataGridView)).BeginInit();
			this.SuspendLayout();
			// 
			// PerformancesDataGridView
			// 
			this.PerformancesDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
			this.PerformancesDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.PerformancesDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.GestureColumn,
            this.ThresholdColumn,
            this.PrecisionColumn,
            this.RecallColumn,
            this.TruePositivesColumn,
            this.FalsePositivesColumn,
            this.FalseNegativesColumn});
			this.PerformancesDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.PerformancesDataGridView.Location = new System.Drawing.Point(0, 0);
			this.PerformancesDataGridView.Name = "PerformancesDataGridView";
			this.PerformancesDataGridView.RowHeadersVisible = false;
			this.PerformancesDataGridView.Size = new System.Drawing.Size(458, 266);
			this.PerformancesDataGridView.TabIndex = 0;
			// 
			// GestureColumn
			// 
			this.GestureColumn.HeaderText = "Gesture";
			this.GestureColumn.Name = "GestureColumn";
			this.GestureColumn.ReadOnly = true;
			// 
			// ThresholdColumn
			// 
			this.ThresholdColumn.HeaderText = "Threshold";
			this.ThresholdColumn.Name = "ThresholdColumn";
			this.ThresholdColumn.ReadOnly = true;
			// 
			// PrecisionColumn
			// 
			this.PrecisionColumn.HeaderText = "Precison";
			this.PrecisionColumn.Name = "PrecisionColumn";
			this.PrecisionColumn.ReadOnly = true;
			// 
			// RecallColumn
			// 
			this.RecallColumn.HeaderText = "Recall";
			this.RecallColumn.Name = "RecallColumn";
			this.RecallColumn.ReadOnly = true;
			// 
			// TruePositivesColumn
			// 
			this.TruePositivesColumn.HeaderText = "True positives";
			this.TruePositivesColumn.Name = "TruePositivesColumn";
			this.TruePositivesColumn.ReadOnly = true;
			// 
			// FalsePositivesColumn
			// 
			this.FalsePositivesColumn.HeaderText = "False positivies";
			this.FalsePositivesColumn.Name = "FalsePositivesColumn";
			this.FalsePositivesColumn.ReadOnly = true;
			// 
			// FalseNegativesColumn
			// 
			this.FalseNegativesColumn.HeaderText = "False negatives";
			this.FalseNegativesColumn.Name = "FalseNegativesColumn";
			this.FalseNegativesColumn.ReadOnly = true;
			// 
			// PerformancesForm
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(458, 266);
			this.Controls.Add(this.PerformancesDataGridView);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
			this.Name = "PerformancesForm";
			this.Text = "Neural networks performances";
			((System.ComponentModel.ISupportInitialize)(this.PerformancesDataGridView)).EndInit();
			this.ResumeLayout(false);

		}

		#endregion

		private System.Windows.Forms.DataGridView PerformancesDataGridView;
		private System.Windows.Forms.DataGridViewTextBoxColumn GestureColumn;
		private System.Windows.Forms.DataGridViewTextBoxColumn ThresholdColumn;
		private System.Windows.Forms.DataGridViewTextBoxColumn PrecisionColumn;
		private System.Windows.Forms.DataGridViewTextBoxColumn RecallColumn;
		private System.Windows.Forms.DataGridViewTextBoxColumn TruePositivesColumn;
		private System.Windows.Forms.DataGridViewTextBoxColumn FalsePositivesColumn;
		private System.Windows.Forms.DataGridViewTextBoxColumn FalseNegativesColumn;

	}
}

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
Software Developer (Senior) Apex s.r.l.
Italy Italy
I got my Computer Science (Engineering) Master's Degree at the Siena University (Italy), but I'm from Rieti (a small town next to Rome).
My hobbies are RPG, MMORGP, programming and 3D graphics.
At the moment I'm employed at Apex s.r.l. (Modena, Italy) as a senior software developer, working for a WPF/WCF project in Rome.

Comments and Discussions