Click here to Skip to main content
15,893,814 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.9K   8.1K   144  
This program can create and recognize mouse gestures.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1433
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace GestureRecognizer.Properties {
    
    
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
        
        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
        
        public static Settings Default {
            get {
                return defaultInstance;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("LightGray")]
        public global::System.Drawing.Color MainPanelGridColor {
            get {
                return ((global::System.Drawing.Color)(this["MainPanelGridColor"]));
            }
            set {
                this["MainPanelGridColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Gray")]
        public global::System.Drawing.Color InfoLabelStandardColor {
            get {
                return ((global::System.Drawing.Color)(this["InfoLabelStandardColor"]));
            }
            set {
                this["InfoLabelStandardColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Blue")]
        public global::System.Drawing.Color InfoLabelInfoColor {
            get {
                return ((global::System.Drawing.Color)(this["InfoLabelInfoColor"]));
            }
            set {
                this["InfoLabelInfoColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Red")]
        public global::System.Drawing.Color InfoLabelErrorColor {
            get {
                return ((global::System.Drawing.Color)(this["InfoLabelErrorColor"]));
            }
            set {
                this["InfoLabelErrorColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("White")]
        public global::System.Drawing.Color MainPanelColor {
            get {
                return ((global::System.Drawing.Color)(this["MainPanelColor"]));
            }
            set {
                this["MainPanelColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Gray")]
        public global::System.Drawing.Color MessageLabelColor {
            get {
                return ((global::System.Drawing.Color)(this["MessageLabelColor"]));
            }
            set {
                this["MessageLabelColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Gray")]
        public global::System.Drawing.Color InfoLabelColor {
            get {
                return ((global::System.Drawing.Color)(this["InfoLabelColor"]));
            }
            set {
                this["InfoLabelColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Gray")]
        public global::System.Drawing.Color RecognizedPanelColor {
            get {
                return ((global::System.Drawing.Color)(this["RecognizedPanelColor"]));
            }
            set {
                this["RecognizedPanelColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Gray")]
        public global::System.Drawing.Color CurrentPanelColor {
            get {
                return ((global::System.Drawing.Color)(this["CurrentPanelColor"]));
            }
            set {
                this["CurrentPanelColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Red")]
        public global::System.Drawing.Color RecognizedPanelEndColor {
            get {
                return ((global::System.Drawing.Color)(this["RecognizedPanelEndColor"]));
            }
            set {
                this["RecognizedPanelEndColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Green")]
        public global::System.Drawing.Color RecognizedPanelStartColor {
            get {
                return ((global::System.Drawing.Color)(this["RecognizedPanelStartColor"]));
            }
            set {
                this["RecognizedPanelStartColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Black")]
        public global::System.Drawing.Color RecognizedPanelStandardColor {
            get {
                return ((global::System.Drawing.Color)(this["RecognizedPanelStandardColor"]));
            }
            set {
                this["RecognizedPanelStandardColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Red")]
        public global::System.Drawing.Color CurrentPanelEndColor {
            get {
                return ((global::System.Drawing.Color)(this["CurrentPanelEndColor"]));
            }
            set {
                this["CurrentPanelEndColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Green")]
        public global::System.Drawing.Color CurrentPanelStartColor {
            get {
                return ((global::System.Drawing.Color)(this["CurrentPanelStartColor"]));
            }
            set {
                this["CurrentPanelStartColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Black")]
        public global::System.Drawing.Color CurrentPanelStandardColor {
            get {
                return ((global::System.Drawing.Color)(this["CurrentPanelStandardColor"]));
            }
            set {
                this["CurrentPanelStandardColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("2")]
        public int MinimumPoints {
            get {
                return ((int)(this["MinimumPoints"]));
            }
            set {
                this["MinimumPoints"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("100")]
        public int MaximumPoints {
            get {
                return ((int)(this["MaximumPoints"]));
            }
            set {
                this["MaximumPoints"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Gray")]
        public global::System.Drawing.Color MessageLabelStandardColor {
            get {
                return ((global::System.Drawing.Color)(this["MessageLabelStandardColor"]));
            }
            set {
                this["MessageLabelStandardColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Blue")]
        public global::System.Drawing.Color MessageLabelInfoColor {
            get {
                return ((global::System.Drawing.Color)(this["MessageLabelInfoColor"]));
            }
            set {
                this["MessageLabelInfoColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Red")]
        public global::System.Drawing.Color MessageLabelErrorColor {
            get {
                return ((global::System.Drawing.Color)(this["MessageLabelErrorColor"]));
            }
            set {
                this["MessageLabelErrorColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Red")]
        public global::System.Drawing.Color MainPanelStandardColor {
            get {
                return ((global::System.Drawing.Color)(this["MainPanelStandardColor"]));
            }
            set {
                this["MainPanelStandardColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("Blue")]
        public global::System.Drawing.Color MainPanelPointsColor {
            get {
                return ((global::System.Drawing.Color)(this["MainPanelPointsColor"]));
            }
            set {
                this["MainPanelPointsColor"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("50")]
        public int MessageLabelTransparency {
            get {
                return ((int)(this["MessageLabelTransparency"]));
            }
            set {
                this["MessageLabelTransparency"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("50")]
        public int InfoLabelTransparency {
            get {
                return ((int)(this["InfoLabelTransparency"]));
            }
            set {
                this["InfoLabelTransparency"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("50")]
        public int RecognizedPanelTransparency {
            get {
                return ((int)(this["RecognizedPanelTransparency"]));
            }
            set {
                this["RecognizedPanelTransparency"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("50")]
        public int CurrentPanelTransparency {
            get {
                return ((int)(this["CurrentPanelTransparency"]));
            }
            set {
                this["CurrentPanelTransparency"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("15")]
        public int MainPanelGridHeight {
            get {
                return ((int)(this["MainPanelGridHeight"]));
            }
            set {
                this["MainPanelGridHeight"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("15")]
        public int MainPanelGridWidth {
            get {
                return ((int)(this["MainPanelGridWidth"]));
            }
            set {
                this["MainPanelGridWidth"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("1")]
        public decimal MainPanelGestureThickness {
            get {
                return ((decimal)(this["MainPanelGestureThickness"]));
            }
            set {
                this["MainPanelGestureThickness"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("False")]
        public bool UseNegativeExamples {
            get {
                return ((bool)(this["UseNegativeExamples"]));
            }
            set {
                this["UseNegativeExamples"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("1000")]
        public decimal MaximumEpochs {
            get {
                return ((decimal)(this["MaximumEpochs"]));
            }
            set {
                this["MaximumEpochs"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0.5")]
        public decimal Momentum {
            get {
                return ((decimal)(this["Momentum"]));
            }
            set {
                this["Momentum"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0.01")]
        public decimal ErrorLimit {
            get {
                return ((decimal)(this["ErrorLimit"]));
            }
            set {
                this["ErrorLimit"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("0.1")]
        public decimal LearningRate {
            get {
                return ((decimal)(this["LearningRate"]));
            }
            set {
                this["LearningRate"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("False")]
        public bool TrainUntrainedOnly {
            get {
                return ((bool)(this["TrainUntrainedOnly"]));
            }
            set {
                this["TrainUntrainedOnly"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("10")]
        public decimal MaximumNegativesExamples {
            get {
                return ((decimal)(this["MaximumNegativesExamples"]));
            }
            set {
                this["MaximumNegativesExamples"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("100")]
        public decimal PatternsToCreate {
            get {
                return ((decimal)(this["PatternsToCreate"]));
            }
            set {
                this["PatternsToCreate"] = value;
            }
        }
        
        [global::System.Configuration.UserScopedSettingAttribute()]
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [global::System.Configuration.DefaultSettingValueAttribute("False")]
        public bool ClearPatterns {
            get {
                return ((bool)(this["ClearPatterns"]));
            }
            set {
                this["ClearPatterns"] = value;
            }
        }
    }
}

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