Click here to Skip to main content
15,886,079 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 NeuralNetworkSettingsForm
	{
		/// <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.NeuralNetworksSettingsGroupBox = new System.Windows.Forms.GroupBox();
			this.LayersNumericUpDown = new System.Windows.Forms.NumericUpDown();
			this.NeuralNetworksLayersLabel = new System.Windows.Forms.Label();
			this.InputsNumericUpDown = new System.Windows.Forms.NumericUpDown();
			this.NeuralNetworksInputsLabel = new System.Windows.Forms.Label();
			this.LayerSettingsGroupBox = new System.Windows.Forms.GroupBox();
			this.AlphaNumericUpDown = new System.Windows.Forms.NumericUpDown();
			this.AlphaLabel = new System.Windows.Forms.Label();
			this.NeuronSettingsGroupBox = new System.Windows.Forms.GroupBox();
			this.BiasNumericUpDown = new System.Windows.Forms.NumericUpDown();
			this.NeuronBiasLabel = new System.Windows.Forms.Label();
			this.SelectedNeuronComboBox = new System.Windows.Forms.ComboBox();
			this.SelectedNeuronLabel = new System.Windows.Forms.Label();
			this.LayerFunctionComboBox = new System.Windows.Forms.ComboBox();
			this.LayerFunctionLabel = new System.Windows.Forms.Label();
			this.NeuronsNumericUpDown = new System.Windows.Forms.NumericUpDown();
			this.LayerNeuronsLabel = new System.Windows.Forms.Label();
			this.SelectedLayerComboBox = new System.Windows.Forms.ComboBox();
			this.SelectedLayerLabel = new System.Windows.Forms.Label();
			this.ShowNeuralNetworkButton = new System.Windows.Forms.Button();
			this.SaveNetworkButton = new System.Windows.Forms.Button();
			this.NeuralNetworksSettingsGroupBox.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.LayersNumericUpDown)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.InputsNumericUpDown)).BeginInit();
			this.LayerSettingsGroupBox.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.AlphaNumericUpDown)).BeginInit();
			this.NeuronSettingsGroupBox.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.BiasNumericUpDown)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.NeuronsNumericUpDown)).BeginInit();
			this.SuspendLayout();
			// 
			// NeuralNetworksSettingsGroupBox
			// 
			this.NeuralNetworksSettingsGroupBox.Controls.Add(this.LayersNumericUpDown);
			this.NeuralNetworksSettingsGroupBox.Controls.Add(this.NeuralNetworksLayersLabel);
			this.NeuralNetworksSettingsGroupBox.Controls.Add(this.InputsNumericUpDown);
			this.NeuralNetworksSettingsGroupBox.Controls.Add(this.NeuralNetworksInputsLabel);
			this.NeuralNetworksSettingsGroupBox.Location = new System.Drawing.Point(12, 12);
			this.NeuralNetworksSettingsGroupBox.Name = "NeuralNetworksSettingsGroupBox";
			this.NeuralNetworksSettingsGroupBox.Size = new System.Drawing.Size(268, 75);
			this.NeuralNetworksSettingsGroupBox.TabIndex = 0;
			this.NeuralNetworksSettingsGroupBox.TabStop = false;
			this.NeuralNetworksSettingsGroupBox.Text = "Neural networks settings";
			// 
			// LayersNumericUpDown
			// 
			this.LayersNumericUpDown.Location = new System.Drawing.Point(142, 45);
			this.LayersNumericUpDown.Maximum = new decimal(new int[] {
            100000,
            0,
            0,
            0});
			this.LayersNumericUpDown.Minimum = new decimal(new int[] {
            2,
            0,
            0,
            0});
			this.LayersNumericUpDown.Name = "LayersNumericUpDown";
			this.LayersNumericUpDown.Size = new System.Drawing.Size(120, 20);
			this.LayersNumericUpDown.TabIndex = 1;
			this.LayersNumericUpDown.Value = new decimal(new int[] {
            3,
            0,
            0,
            0});
			this.LayersNumericUpDown.ValueChanged += new System.EventHandler(this.LayersNumericUpDown_ValueChanged);
			// 
			// NeuralNetworksLayersLabel
			// 
			this.NeuralNetworksLayersLabel.AutoSize = true;
			this.NeuralNetworksLayersLabel.Location = new System.Drawing.Point(6, 47);
			this.NeuralNetworksLayersLabel.Name = "NeuralNetworksLayersLabel";
			this.NeuralNetworksLayersLabel.Size = new System.Drawing.Size(114, 13);
			this.NeuralNetworksLayersLabel.TabIndex = 2;
			this.NeuralNetworksLayersLabel.Text = "Neural networks layers";
			// 
			// InputsNumericUpDown
			// 
			this.InputsNumericUpDown.Location = new System.Drawing.Point(142, 19);
			this.InputsNumericUpDown.Maximum = new decimal(new int[] {
            100000,
            0,
            0,
            0});
			this.InputsNumericUpDown.Minimum = new decimal(new int[] {
            2,
            0,
            0,
            0});
			this.InputsNumericUpDown.Name = "InputsNumericUpDown";
			this.InputsNumericUpDown.Size = new System.Drawing.Size(120, 20);
			this.InputsNumericUpDown.TabIndex = 0;
			this.InputsNumericUpDown.Value = new decimal(new int[] {
            10,
            0,
            0,
            0});
			this.InputsNumericUpDown.ValueChanged += new System.EventHandler(this.InputsNumericUpDown_ValueChanged);
			// 
			// NeuralNetworksInputsLabel
			// 
			this.NeuralNetworksInputsLabel.AutoSize = true;
			this.NeuralNetworksInputsLabel.Location = new System.Drawing.Point(6, 21);
			this.NeuralNetworksInputsLabel.Name = "NeuralNetworksInputsLabel";
			this.NeuralNetworksInputsLabel.Size = new System.Drawing.Size(115, 13);
			this.NeuralNetworksInputsLabel.TabIndex = 0;
			this.NeuralNetworksInputsLabel.Text = "Neural networks inputs";
			// 
			// LayerSettingsGroupBox
			// 
			this.LayerSettingsGroupBox.Controls.Add(this.AlphaNumericUpDown);
			this.LayerSettingsGroupBox.Controls.Add(this.AlphaLabel);
			this.LayerSettingsGroupBox.Controls.Add(this.NeuronSettingsGroupBox);
			this.LayerSettingsGroupBox.Controls.Add(this.LayerFunctionComboBox);
			this.LayerSettingsGroupBox.Controls.Add(this.LayerFunctionLabel);
			this.LayerSettingsGroupBox.Controls.Add(this.NeuronsNumericUpDown);
			this.LayerSettingsGroupBox.Controls.Add(this.LayerNeuronsLabel);
			this.LayerSettingsGroupBox.Controls.Add(this.SelectedLayerComboBox);
			this.LayerSettingsGroupBox.Controls.Add(this.SelectedLayerLabel);
			this.LayerSettingsGroupBox.Location = new System.Drawing.Point(12, 93);
			this.LayerSettingsGroupBox.Name = "LayerSettingsGroupBox";
			this.LayerSettingsGroupBox.Size = new System.Drawing.Size(268, 215);
			this.LayerSettingsGroupBox.TabIndex = 1;
			this.LayerSettingsGroupBox.TabStop = false;
			this.LayerSettingsGroupBox.Text = "Layer settings";
			// 
			// AlphaNumericUpDown
			// 
			this.AlphaNumericUpDown.DecimalPlaces = 3;
			this.AlphaNumericUpDown.Increment = new decimal(new int[] {
            1,
            0,
            0,
            65536});
			this.AlphaNumericUpDown.Location = new System.Drawing.Point(125, 106);
			this.AlphaNumericUpDown.Maximum = new decimal(new int[] {
            100000,
            0,
            0,
            0});
			this.AlphaNumericUpDown.Minimum = new decimal(new int[] {
            100000,
            0,
            0,
            -2147483648});
			this.AlphaNumericUpDown.Name = "AlphaNumericUpDown";
			this.AlphaNumericUpDown.Size = new System.Drawing.Size(137, 20);
			this.AlphaNumericUpDown.TabIndex = 5;
			this.AlphaNumericUpDown.Value = new decimal(new int[] {
            1,
            0,
            0,
            0});
			this.AlphaNumericUpDown.ValueChanged += new System.EventHandler(this.AlphaNumericUpDown_ValueChanged);
			// 
			// AlphaLabel
			// 
			this.AlphaLabel.AutoSize = true;
			this.AlphaLabel.Location = new System.Drawing.Point(5, 108);
			this.AlphaLabel.Name = "AlphaLabel";
			this.AlphaLabel.Size = new System.Drawing.Size(106, 13);
			this.AlphaLabel.TabIndex = 13;
			this.AlphaLabel.Text = "Function alpha value";
			// 
			// NeuronSettingsGroupBox
			// 
			this.NeuronSettingsGroupBox.Controls.Add(this.BiasNumericUpDown);
			this.NeuronSettingsGroupBox.Controls.Add(this.NeuronBiasLabel);
			this.NeuronSettingsGroupBox.Controls.Add(this.SelectedNeuronComboBox);
			this.NeuronSettingsGroupBox.Controls.Add(this.SelectedNeuronLabel);
			this.NeuronSettingsGroupBox.Location = new System.Drawing.Point(9, 132);
			this.NeuronSettingsGroupBox.Name = "NeuronSettingsGroupBox";
			this.NeuronSettingsGroupBox.Size = new System.Drawing.Size(253, 77);
			this.NeuronSettingsGroupBox.TabIndex = 12;
			this.NeuronSettingsGroupBox.TabStop = false;
			this.NeuronSettingsGroupBox.Text = "Neuron settings";
			// 
			// BiasNumericUpDown
			// 
			this.BiasNumericUpDown.DecimalPlaces = 3;
			this.BiasNumericUpDown.Increment = new decimal(new int[] {
            1,
            0,
            0,
            65536});
			this.BiasNumericUpDown.Location = new System.Drawing.Point(116, 47);
			this.BiasNumericUpDown.Maximum = new decimal(new int[] {
            100000,
            0,
            0,
            0});
			this.BiasNumericUpDown.Minimum = new decimal(new int[] {
            100000,
            0,
            0,
            -2147483648});
			this.BiasNumericUpDown.Name = "BiasNumericUpDown";
			this.BiasNumericUpDown.Size = new System.Drawing.Size(131, 20);
			this.BiasNumericUpDown.TabIndex = 7;
			this.BiasNumericUpDown.ValueChanged += new System.EventHandler(this.BiasNumericUpDown_ValueChanged);
			// 
			// NeuronBiasLabel
			// 
			this.NeuronBiasLabel.AutoSize = true;
			this.NeuronBiasLabel.Location = new System.Drawing.Point(6, 49);
			this.NeuronBiasLabel.Name = "NeuronBiasLabel";
			this.NeuronBiasLabel.Size = new System.Drawing.Size(64, 13);
			this.NeuronBiasLabel.TabIndex = 10;
			this.NeuronBiasLabel.Text = "Neuron bias";
			// 
			// SelectedNeuronComboBox
			// 
			this.SelectedNeuronComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.SelectedNeuronComboBox.FormattingEnabled = true;
			this.SelectedNeuronComboBox.Location = new System.Drawing.Point(116, 16);
			this.SelectedNeuronComboBox.Name = "SelectedNeuronComboBox";
			this.SelectedNeuronComboBox.Size = new System.Drawing.Size(131, 21);
			this.SelectedNeuronComboBox.TabIndex = 6;
			this.SelectedNeuronComboBox.SelectedIndexChanged += new System.EventHandler(this.SelectedNeuronComboBox_SelectedIndexChanged);
			// 
			// SelectedNeuronLabel
			// 
			this.SelectedNeuronLabel.AutoSize = true;
			this.SelectedNeuronLabel.Location = new System.Drawing.Point(6, 19);
			this.SelectedNeuronLabel.Name = "SelectedNeuronLabel";
			this.SelectedNeuronLabel.Size = new System.Drawing.Size(85, 13);
			this.SelectedNeuronLabel.TabIndex = 8;
			this.SelectedNeuronLabel.Text = "Selected neuron";
			// 
			// LayerFunctionComboBox
			// 
			this.LayerFunctionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.LayerFunctionComboBox.FormattingEnabled = true;
			this.LayerFunctionComboBox.Items.AddRange(new object[] {
            "Bipolar sigmoid",
            "Hyperbolic tangent",
            "Linear",
            "Sigmoid"});
			this.LayerFunctionComboBox.Location = new System.Drawing.Point(125, 77);
			this.LayerFunctionComboBox.Name = "LayerFunctionComboBox";
			this.LayerFunctionComboBox.Size = new System.Drawing.Size(137, 21);
			this.LayerFunctionComboBox.TabIndex = 4;
			this.LayerFunctionComboBox.SelectedIndexChanged += new System.EventHandler(this.LayerFunctionComboBox_SelectedIndexChanged);
			// 
			// LayerFunctionLabel
			// 
			this.LayerFunctionLabel.AutoSize = true;
			this.LayerFunctionLabel.Location = new System.Drawing.Point(6, 80);
			this.LayerFunctionLabel.Name = "LayerFunctionLabel";
			this.LayerFunctionLabel.Size = new System.Drawing.Size(74, 13);
			this.LayerFunctionLabel.TabIndex = 10;
			this.LayerFunctionLabel.Text = "Layer function";
			// 
			// NeuronsNumericUpDown
			// 
			this.NeuronsNumericUpDown.Location = new System.Drawing.Point(125, 51);
			this.NeuronsNumericUpDown.Maximum = new decimal(new int[] {
            100000,
            0,
            0,
            0});
			this.NeuronsNumericUpDown.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            0});
			this.NeuronsNumericUpDown.Name = "NeuronsNumericUpDown";
			this.NeuronsNumericUpDown.Size = new System.Drawing.Size(137, 20);
			this.NeuronsNumericUpDown.TabIndex = 3;
			this.NeuronsNumericUpDown.Value = new decimal(new int[] {
            1,
            0,
            0,
            0});
			this.NeuronsNumericUpDown.ValueChanged += new System.EventHandler(this.NeuronsNumericUpDown_ValueChanged);
			// 
			// LayerNeuronsLabel
			// 
			this.LayerNeuronsLabel.AutoSize = true;
			this.LayerNeuronsLabel.Location = new System.Drawing.Point(6, 53);
			this.LayerNeuronsLabel.Name = "LayerNeuronsLabel";
			this.LayerNeuronsLabel.Size = new System.Drawing.Size(74, 13);
			this.LayerNeuronsLabel.TabIndex = 8;
			this.LayerNeuronsLabel.Text = "Layer neurons";
			// 
			// SelectedLayerComboBox
			// 
			this.SelectedLayerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.SelectedLayerComboBox.FormattingEnabled = true;
			this.SelectedLayerComboBox.Location = new System.Drawing.Point(125, 24);
			this.SelectedLayerComboBox.Name = "SelectedLayerComboBox";
			this.SelectedLayerComboBox.Size = new System.Drawing.Size(137, 21);
			this.SelectedLayerComboBox.TabIndex = 2;
			this.SelectedLayerComboBox.SelectedIndexChanged += new System.EventHandler(this.SelectedLayerComboBox_SelectedIndexChanged);
			// 
			// SelectedLayerLabel
			// 
			this.SelectedLayerLabel.AutoSize = true;
			this.SelectedLayerLabel.Location = new System.Drawing.Point(6, 27);
			this.SelectedLayerLabel.Name = "SelectedLayerLabel";
			this.SelectedLayerLabel.Size = new System.Drawing.Size(74, 13);
			this.SelectedLayerLabel.TabIndex = 6;
			this.SelectedLayerLabel.Text = "Selected layer";
			// 
			// ShowNeuralNetworkButton
			// 
			this.ShowNeuralNetworkButton.Location = new System.Drawing.Point(12, 314);
			this.ShowNeuralNetworkButton.Name = "ShowNeuralNetworkButton";
			this.ShowNeuralNetworkButton.Size = new System.Drawing.Size(268, 21);
			this.ShowNeuralNetworkButton.TabIndex = 8;
			this.ShowNeuralNetworkButton.Text = "Show &current neural network";
			this.ShowNeuralNetworkButton.UseVisualStyleBackColor = true;
			this.ShowNeuralNetworkButton.Click += new System.EventHandler(this.ShowNeuralNetworkButton_Click);
			// 
			// SaveNetworkButton
			// 
			this.SaveNetworkButton.Location = new System.Drawing.Point(12, 341);
			this.SaveNetworkButton.Name = "SaveNetworkButton";
			this.SaveNetworkButton.Size = new System.Drawing.Size(268, 21);
			this.SaveNetworkButton.TabIndex = 9;
			this.SaveNetworkButton.Text = "&Save neural network";
			this.SaveNetworkButton.UseVisualStyleBackColor = true;
			this.SaveNetworkButton.Click += new System.EventHandler(this.SaveNetworkButton_Click);
			// 
			// NeuralNetworkSettingsForm
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(292, 373);
			this.Controls.Add(this.SaveNetworkButton);
			this.Controls.Add(this.ShowNeuralNetworkButton);
			this.Controls.Add(this.LayerSettingsGroupBox);
			this.Controls.Add(this.NeuralNetworksSettingsGroupBox);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
			this.Name = "NeuralNetworkSettingsForm";
			this.ShowInTaskbar = false;
			this.Text = "Neural network settings";
			this.NeuralNetworksSettingsGroupBox.ResumeLayout(false);
			this.NeuralNetworksSettingsGroupBox.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.LayersNumericUpDown)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.InputsNumericUpDown)).EndInit();
			this.LayerSettingsGroupBox.ResumeLayout(false);
			this.LayerSettingsGroupBox.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.AlphaNumericUpDown)).EndInit();
			this.NeuronSettingsGroupBox.ResumeLayout(false);
			this.NeuronSettingsGroupBox.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.BiasNumericUpDown)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.NeuronsNumericUpDown)).EndInit();
			this.ResumeLayout(false);

		}

		#endregion

		private System.Windows.Forms.GroupBox NeuralNetworksSettingsGroupBox;
		private System.Windows.Forms.NumericUpDown InputsNumericUpDown;
		private System.Windows.Forms.Label NeuralNetworksInputsLabel;
		private System.Windows.Forms.NumericUpDown LayersNumericUpDown;
		private System.Windows.Forms.Label NeuralNetworksLayersLabel;
		private System.Windows.Forms.GroupBox LayerSettingsGroupBox;
		private System.Windows.Forms.ComboBox SelectedLayerComboBox;
		private System.Windows.Forms.Label SelectedLayerLabel;
		private System.Windows.Forms.NumericUpDown NeuronsNumericUpDown;
		private System.Windows.Forms.Label LayerNeuronsLabel;
		private System.Windows.Forms.ComboBox LayerFunctionComboBox;
		private System.Windows.Forms.Label LayerFunctionLabel;
		private System.Windows.Forms.GroupBox NeuronSettingsGroupBox;
		private System.Windows.Forms.NumericUpDown BiasNumericUpDown;
		private System.Windows.Forms.Label NeuronBiasLabel;
		private System.Windows.Forms.ComboBox SelectedNeuronComboBox;
		private System.Windows.Forms.Label SelectedNeuronLabel;
		private System.Windows.Forms.Button ShowNeuralNetworkButton;
		private System.Windows.Forms.NumericUpDown AlphaNumericUpDown;
		private System.Windows.Forms.Label AlphaLabel;
		private System.Windows.Forms.Button SaveNetworkButton;
	}
}

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