Click here to Skip to main content
15,880,427 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.2K   8.1K   144  
This program can create and recognize mouse gestures.
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{943F0166-4E00-4049-82B0-934762F3A2FF}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>GestureRecognizer</RootNamespace>
    <AssemblyName>GestureRecognizer</AssemblyName>
    <StartupObject>
    </StartupObject>
    <ApplicationIcon>GestureRecognizer.ico</ApplicationIcon>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>2.0</OldToolsVersion>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.configuration" />
    <Reference Include="System.Data" />
    <Reference Include="System.Deployment" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="AboutGestureRecognizerForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="AboutGestureRecognizerForm.Designer.cs">
      <DependentUpon>AboutGestureRecognizerForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Delegates.cs" />
    <Compile Include="GestureRecognizerData.cs" />
    <Compile Include="GestureMainForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="GestureMainForm.Designer.cs">
      <DependentUpon>GestureMainForm.cs</DependentUpon>
    </Compile>
    <Compile Include="GestureManagementForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="GestureManagementForm.Designer.cs">
      <DependentUpon>GestureManagementForm.cs</DependentUpon>
    </Compile>
    <Compile Include="MainForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="MainForm.Designer.cs">
      <DependentUpon>MainForm.cs</DependentUpon>
    </Compile>
    <Compile Include="NewGestureForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="NewGestureForm.Designer.cs">
      <DependentUpon>NewGestureForm.cs</DependentUpon>
    </Compile>
    <Compile Include="NeuralNetworkPreviewForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="NeuralNetworkPreviewForm.Designer.cs">
      <DependentUpon>NeuralNetworkPreviewForm.cs</DependentUpon>
    </Compile>
    <Compile Include="PerformancesForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="PerformancesForm.Designer.cs">
      <DependentUpon>PerformancesForm.cs</DependentUpon>
    </Compile>
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <EmbeddedResource Include="AboutGestureRecognizerForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>AboutGestureRecognizerForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="GestureMainForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>GestureMainForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="GestureManagementForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>GestureManagementForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="MainForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>MainForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="NewGestureForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>NewGestureForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="NeuralNetworkPreviewForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>NeuralNetworkPreviewForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="PerformancesForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>PerformancesForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="SettingsForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>SettingsForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="NeuralNetworkSettingsForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>NeuralNetworkSettingsForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="ThresholdsForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>ThresholdsForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="GestureSetCreationForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>GestureSetCreationForm.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="NeuralNetworkTrainForm.resx">
      <SubType>Designer</SubType>
      <DependentUpon>NeuralNetworkTrainForm.cs</DependentUpon>
    </EmbeddedResource>
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Resources.resx</DependentUpon>
      <DesignTime>True</DesignTime>
    </Compile>
    <None Include="app.config" />
    <None Include="Properties\Settings.settings">
      <Generator>SettingsSingleFileGenerator</Generator>
      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <Compile Include="Properties\Settings.Designer.cs">
      <AutoGen>True</AutoGen>
      <DependentUpon>Settings.settings</DependentUpon>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Compile>
    <Compile Include="SettingsForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="SettingsForm.Designer.cs">
      <DependentUpon>SettingsForm.cs</DependentUpon>
    </Compile>
    <Compile Include="NeuralNetworkSettingsForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="NeuralNetworkSettingsForm.Designer.cs">
      <DependentUpon>NeuralNetworkSettingsForm.cs</DependentUpon>
    </Compile>
    <Compile Include="ThresholdsForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="ThresholdsForm.Designer.cs">
      <DependentUpon>ThresholdsForm.cs</DependentUpon>
    </Compile>
    <Compile Include="GestureSetCreationForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="GestureSetCreationForm.Designer.cs">
      <DependentUpon>GestureSetCreationForm.cs</DependentUpon>
    </Compile>
    <Compile Include="NeuralNetworkTrainForm.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="NeuralNetworkTrainForm.Designer.cs">
      <DependentUpon>NeuralNetworkTrainForm.cs</DependentUpon>
    </Compile>
    <Compile Include="TransparentLabel.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="GesturePanel.cs">
      <SubType>Component</SubType>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\Common\System.Common.csproj">
      <Project>{8FB81576-B02D-4876-8FD8-FCAF1AAD86E3}</Project>
      <Name>System.Common</Name>
    </ProjectReference>
    <ProjectReference Include="..\MouseGestures\MouseGestures.csproj">
      <Project>{3D261617-DF1B-4E3F-A199-E5EF2BC1201D}</Project>
      <Name>MouseGestures</Name>
    </ProjectReference>
    <ProjectReference Include="..\NeuralNetwork\NeuralNetworks.csproj">
      <Project>{922C1929-9D30-439B-AF70-637ED8BCDA22}</Project>
      <Name>NeuralNetworks</Name>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <Content Include="GestureRecognizer.ico" />
    <Content Include="ToDo.txt" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

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