From 2d196ace7c58fd8ee8f4203b8c83c12fec3afca4 Mon Sep 17 00:00:00 2001 From: Taka Date: Thu, 8 Dec 2016 19:09:10 +1000 Subject: [PATCH] Added a skeleton project for the main app. --- MainApp/MainForm.Designer.cs | 39 ++++++++ MainApp/MainForm.cs | 19 ++++ MainApp/MouseInterception.csproj | 86 +++++++++++++++++ MainApp/MouseInterception.sln | 20 ++++ MainApp/Program.cs | 21 ++++ MainApp/Properties/AssemblyInfo.cs | 36 +++++++ MainApp/Properties/Resources.Designer.cs | 71 ++++++++++++++ MainApp/Properties/Resources.resx | 117 +++++++++++++++++++++++ MainApp/Properties/Settings.Designer.cs | 30 ++++++ MainApp/Properties/Settings.settings | 7 ++ 10 files changed, 446 insertions(+) create mode 100644 MainApp/MainForm.Designer.cs create mode 100644 MainApp/MainForm.cs create mode 100644 MainApp/MouseInterception.csproj create mode 100644 MainApp/MouseInterception.sln create mode 100644 MainApp/Program.cs create mode 100644 MainApp/Properties/AssemblyInfo.cs create mode 100644 MainApp/Properties/Resources.Designer.cs create mode 100644 MainApp/Properties/Resources.resx create mode 100644 MainApp/Properties/Settings.Designer.cs create mode 100644 MainApp/Properties/Settings.settings diff --git a/MainApp/MainForm.Designer.cs b/MainApp/MainForm.Designer.cs new file mode 100644 index 0000000..798636b --- /dev/null +++ b/MainApp/MainForm.Designer.cs @@ -0,0 +1,39 @@ +namespace MouseInterception +{ + partial class MainForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose( bool disposing ) + { + if ( disposing && (components != null) ) + { + components.Dispose(); + } + base.Dispose( disposing ); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Text = "Form1"; + } + + #endregion + } +} + diff --git a/MainApp/MainForm.cs b/MainApp/MainForm.cs new file mode 100644 index 0000000..ec49f88 --- /dev/null +++ b/MainApp/MainForm.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace MouseInterception +{ + public partial class MainForm : Form + { + public MainForm() + { + InitializeComponent(); + } + } +} diff --git a/MainApp/MouseInterception.csproj b/MainApp/MouseInterception.csproj new file mode 100644 index 0000000..e7817f5 --- /dev/null +++ b/MainApp/MouseInterception.csproj @@ -0,0 +1,86 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {4D4FFFC1-301B-4312-8861-A62FC5E3C5A7} + WinExe + Properties + MouseInterception + MouseInterception + v3.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + Form + + + MainForm.cs + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/MainApp/MouseInterception.sln b/MainApp/MouseInterception.sln new file mode 100644 index 0000000..a058305 --- /dev/null +++ b/MainApp/MouseInterception.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MouseInterception", "MouseInterception.csproj", "{4D4FFFC1-301B-4312-8861-A62FC5E3C5A7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4D4FFFC1-301B-4312-8861-A62FC5E3C5A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4D4FFFC1-301B-4312-8861-A62FC5E3C5A7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4D4FFFC1-301B-4312-8861-A62FC5E3C5A7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4D4FFFC1-301B-4312-8861-A62FC5E3C5A7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/MainApp/Program.cs b/MainApp/Program.cs new file mode 100644 index 0000000..92cceae --- /dev/null +++ b/MainApp/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace MouseInterception +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault( false ); + Application.Run( new MainForm() ); + } + } +} diff --git a/MainApp/Properties/AssemblyInfo.cs b/MainApp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..652f9d8 --- /dev/null +++ b/MainApp/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle( "MouseInterception" )] +[assembly: AssemblyDescription( "" )] +[assembly: AssemblyConfiguration( "" )] +[assembly: AssemblyCompany( "" )] +[assembly: AssemblyProduct( "MouseInterception" )] +[assembly: AssemblyCopyright( "Copyright © 2016" )] +[assembly: AssemblyTrademark( "" )] +[assembly: AssemblyCulture( "" )] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible( false )] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid( "3144a7b0-37dd-4231-923c-ff417fc20dfe" )] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion( "1.0.0.0" )] +[assembly: AssemblyFileVersion( "1.0.0.0" )] diff --git a/MainApp/Properties/Resources.Designer.cs b/MainApp/Properties/Resources.Designer.cs new file mode 100644 index 0000000..fe72fbd --- /dev/null +++ b/MainApp/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.5485 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MouseInterception.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute( "System.Resources.Tools.StronglyTypedResourceBuilder" , "2.0.0.0" )] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute( "Microsoft.Performance" , "CA1811:AvoidUncalledPrivateCode" )] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute( global::System.ComponentModel.EditorBrowsableState.Advanced )] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ( (resourceMan == null) ) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager( "MouseInterception.Properties.Resources" , typeof( Resources ).Assembly ); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute( global::System.ComponentModel.EditorBrowsableState.Advanced )] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/MainApp/Properties/Resources.resx b/MainApp/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/MainApp/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/MainApp/Properties/Settings.Designer.cs b/MainApp/Properties/Settings.Designer.cs new file mode 100644 index 0000000..a46fe7b --- /dev/null +++ b/MainApp/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.5485 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MouseInterception.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; + } + } + } +} diff --git a/MainApp/Properties/Settings.settings b/MainApp/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/MainApp/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +