From f12cbc7fab9aa549fa8297e2c2ed543c3f73b55f Mon Sep 17 00:00:00 2001 From: titanium007 Date: Tue, 5 Apr 2016 15:31:39 -0400 Subject: [PATCH] Rename test as example --- .../EventHook.ConsoleApp.Example}/Capture.PNG | Bin .../EventHook.ConsoleApp.Example.csproj | 4 +- .../EventHook.ConsoleApp.Example}/Program.cs | 2 +- .../Properties/AssemblyInfo.cs | 0 .../EventHook.ConsoleApp.Example}/app.config | 0 .../EventHook.WinForms.Example}/App.config | 0 .../EventHook.WinForms.Example.csproj | 5 +- .../MainForm.Designer.cs | 2 +- .../EventHook.WinForms.Example}/MainForm.cs | 2 +- .../EventHook.WinForms.Example}/Program.cs | 2 +- .../Properties/AssemblyInfo.cs | 0 .../Properties/Resources.Designer.cs | 44 +++++++----------- .../Properties/Resources.resx | 0 .../Properties/Settings.Designer.cs | 22 ++++----- .../Properties/Settings.settings | 0 EventHook.sln | 4 +- 16 files changed, 38 insertions(+), 49 deletions(-) rename {Examples/EventHook.Tests => EventHook.Examples/EventHook.ConsoleApp.Example}/Capture.PNG (100%) rename Examples/EventHook.Tests/EventHook.Tests.csproj => EventHook.Examples/EventHook.ConsoleApp.Example/EventHook.ConsoleApp.Example.csproj (96%) rename {Examples/EventHook.Tests => EventHook.Examples/EventHook.ConsoleApp.Example}/Program.cs (97%) rename {Examples/EventHook.Tests => EventHook.Examples/EventHook.ConsoleApp.Example}/Properties/AssemblyInfo.cs (100%) rename {Examples/EventHook.Tests => EventHook.Examples/EventHook.ConsoleApp.Example}/app.config (100%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/App.config (100%) rename Examples/EventHook.Forms.Tests/EventHook.Forms.Tests.csproj => EventHook.Examples/EventHook.WinForms.Example/EventHook.WinForms.Example.csproj (96%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/MainForm.Designer.cs (96%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/MainForm.cs (97%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/Program.cs (93%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/Properties/AssemblyInfo.cs (100%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/Properties/Resources.Designer.cs (83%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/Properties/Resources.resx (100%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/Properties/Settings.Designer.cs (81%) rename {Examples/EventHook.Forms.Tests => EventHook.Examples/EventHook.WinForms.Example}/Properties/Settings.settings (100%) diff --git a/Examples/EventHook.Tests/Capture.PNG b/EventHook.Examples/EventHook.ConsoleApp.Example/Capture.PNG similarity index 100% rename from Examples/EventHook.Tests/Capture.PNG rename to EventHook.Examples/EventHook.ConsoleApp.Example/Capture.PNG diff --git a/Examples/EventHook.Tests/EventHook.Tests.csproj b/EventHook.Examples/EventHook.ConsoleApp.Example/EventHook.ConsoleApp.Example.csproj similarity index 96% rename from Examples/EventHook.Tests/EventHook.Tests.csproj rename to EventHook.Examples/EventHook.ConsoleApp.Example/EventHook.ConsoleApp.Example.csproj index b466f62..487ff81 100644 --- a/Examples/EventHook.Tests/EventHook.Tests.csproj +++ b/EventHook.Examples/EventHook.ConsoleApp.Example/EventHook.ConsoleApp.Example.csproj @@ -7,8 +7,8 @@ {0075830E-89B6-4E6B-9C49-CA377746AB4C} Exe Properties - EventHook.Tests - EventHook.Tests + EventHook.ConsoleApp.Example + EventHook.ConsoleApp.Example v4.0 512 diff --git a/Examples/EventHook.Tests/Program.cs b/EventHook.Examples/EventHook.ConsoleApp.Example/Program.cs similarity index 97% rename from Examples/EventHook.Tests/Program.cs rename to EventHook.Examples/EventHook.ConsoleApp.Example/Program.cs index 1fdb057..3b4e202 100644 --- a/Examples/EventHook.Tests/Program.cs +++ b/EventHook.Examples/EventHook.ConsoleApp.Example/Program.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using System.Windows.Threading; -namespace EventHook.Tests +namespace EventHook.ConsoleApp.Example { class Program { diff --git a/Examples/EventHook.Tests/Properties/AssemblyInfo.cs b/EventHook.Examples/EventHook.ConsoleApp.Example/Properties/AssemblyInfo.cs similarity index 100% rename from Examples/EventHook.Tests/Properties/AssemblyInfo.cs rename to EventHook.Examples/EventHook.ConsoleApp.Example/Properties/AssemblyInfo.cs diff --git a/Examples/EventHook.Tests/app.config b/EventHook.Examples/EventHook.ConsoleApp.Example/app.config similarity index 100% rename from Examples/EventHook.Tests/app.config rename to EventHook.Examples/EventHook.ConsoleApp.Example/app.config diff --git a/Examples/EventHook.Forms.Tests/App.config b/EventHook.Examples/EventHook.WinForms.Example/App.config similarity index 100% rename from Examples/EventHook.Forms.Tests/App.config rename to EventHook.Examples/EventHook.WinForms.Example/App.config diff --git a/Examples/EventHook.Forms.Tests/EventHook.Forms.Tests.csproj b/EventHook.Examples/EventHook.WinForms.Example/EventHook.WinForms.Example.csproj similarity index 96% rename from Examples/EventHook.Forms.Tests/EventHook.Forms.Tests.csproj rename to EventHook.Examples/EventHook.WinForms.Example/EventHook.WinForms.Example.csproj index e573fc6..714932c 100644 --- a/Examples/EventHook.Forms.Tests/EventHook.Forms.Tests.csproj +++ b/EventHook.Examples/EventHook.WinForms.Example/EventHook.WinForms.Example.csproj @@ -7,8 +7,8 @@ {17264D8C-CF5A-4032-9E70-090525D574F2} WinExe Properties - EventHook.Forms.Tests - EventHook.Forms.Tests + EventHook.WinForms.Example + EventHook.WinForms.Example v4.5.2 512 true @@ -62,6 +62,7 @@ True Resources.resx + True SettingsSingleFileGenerator diff --git a/Examples/EventHook.Forms.Tests/MainForm.Designer.cs b/EventHook.Examples/EventHook.WinForms.Example/MainForm.Designer.cs similarity index 96% rename from Examples/EventHook.Forms.Tests/MainForm.Designer.cs rename to EventHook.Examples/EventHook.WinForms.Example/MainForm.Designer.cs index 33734d4..ce04160 100644 --- a/Examples/EventHook.Forms.Tests/MainForm.Designer.cs +++ b/EventHook.Examples/EventHook.WinForms.Example/MainForm.Designer.cs @@ -1,4 +1,4 @@ -namespace EventHook.Forms.Tests +namespace EventHook.WinForms.Example { partial class MainForm { diff --git a/Examples/EventHook.Forms.Tests/MainForm.cs b/EventHook.Examples/EventHook.WinForms.Example/MainForm.cs similarity index 97% rename from Examples/EventHook.Forms.Tests/MainForm.cs rename to EventHook.Examples/EventHook.WinForms.Example/MainForm.cs index b868037..134efb4 100644 --- a/Examples/EventHook.Forms.Tests/MainForm.cs +++ b/EventHook.Examples/EventHook.WinForms.Example/MainForm.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; using System.Windows.Forms; -namespace EventHook.Forms.Tests +namespace EventHook.WinForms.Example { public partial class MainForm : Form { diff --git a/Examples/EventHook.Forms.Tests/Program.cs b/EventHook.Examples/EventHook.WinForms.Example/Program.cs similarity index 93% rename from Examples/EventHook.Forms.Tests/Program.cs rename to EventHook.Examples/EventHook.WinForms.Example/Program.cs index dca0acd..5b53422 100644 --- a/Examples/EventHook.Forms.Tests/Program.cs +++ b/EventHook.Examples/EventHook.WinForms.Example/Program.cs @@ -4,7 +4,7 @@ using System.Threading.Tasks; using System.Windows.Forms; -namespace EventHook.Forms.Tests +namespace EventHook.WinForms.Example { static class Program { diff --git a/Examples/EventHook.Forms.Tests/Properties/AssemblyInfo.cs b/EventHook.Examples/EventHook.WinForms.Example/Properties/AssemblyInfo.cs similarity index 100% rename from Examples/EventHook.Forms.Tests/Properties/AssemblyInfo.cs rename to EventHook.Examples/EventHook.WinForms.Example/Properties/AssemblyInfo.cs diff --git a/Examples/EventHook.Forms.Tests/Properties/Resources.Designer.cs b/EventHook.Examples/EventHook.WinForms.Example/Properties/Resources.Designer.cs similarity index 83% rename from Examples/EventHook.Forms.Tests/Properties/Resources.Designer.cs rename to EventHook.Examples/EventHook.WinForms.Example/Properties/Resources.Designer.cs index e5e63b9..a088102 100644 --- a/Examples/EventHook.Forms.Tests/Properties/Resources.Designer.cs +++ b/EventHook.Examples/EventHook.WinForms.Example/Properties/Resources.Designer.cs @@ -8,10 +8,10 @@ // //------------------------------------------------------------------------------ -namespace EventHook.Forms.Tests.Properties -{ - - +namespace EventHook.WinForms.Example.Properties { + using System; + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// @@ -22,48 +22,40 @@ namespace EventHook.Forms.Tests.Properties [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - + 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() - { + 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("EventHook.Forms.Tests.Properties.Resources", typeof(Resources).Assembly); + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("EventHook.WinForms.Example.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 - { + internal static global::System.Globalization.CultureInfo Culture { + get { return resourceCulture; } - set - { + set { resourceCulture = value; } } diff --git a/Examples/EventHook.Forms.Tests/Properties/Resources.resx b/EventHook.Examples/EventHook.WinForms.Example/Properties/Resources.resx similarity index 100% rename from Examples/EventHook.Forms.Tests/Properties/Resources.resx rename to EventHook.Examples/EventHook.WinForms.Example/Properties/Resources.resx diff --git a/Examples/EventHook.Forms.Tests/Properties/Settings.Designer.cs b/EventHook.Examples/EventHook.WinForms.Example/Properties/Settings.Designer.cs similarity index 81% rename from Examples/EventHook.Forms.Tests/Properties/Settings.Designer.cs rename to EventHook.Examples/EventHook.WinForms.Example/Properties/Settings.Designer.cs index 0861f57..9e8c20e 100644 --- a/Examples/EventHook.Forms.Tests/Properties/Settings.Designer.cs +++ b/EventHook.Examples/EventHook.WinForms.Example/Properties/Settings.Designer.cs @@ -8,21 +8,17 @@ // //------------------------------------------------------------------------------ -namespace EventHook.Forms.Tests.Properties -{ - - +namespace EventHook.WinForms.Example.Properties { + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.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 - { + + public static Settings Default { + get { return defaultInstance; } } diff --git a/Examples/EventHook.Forms.Tests/Properties/Settings.settings b/EventHook.Examples/EventHook.WinForms.Example/Properties/Settings.settings similarity index 100% rename from Examples/EventHook.Forms.Tests/Properties/Settings.settings rename to EventHook.Examples/EventHook.WinForms.Example/Properties/Settings.settings diff --git a/EventHook.sln b/EventHook.sln index 6cac425..9f5c032 100644 --- a/EventHook.sln +++ b/EventHook.sln @@ -14,9 +14,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{44D5BA .nuget\NuGet.targets = .nuget\NuGet.targets EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventHook.Forms.Tests", "Examples\EventHook.Forms.Tests\EventHook.Forms.Tests.csproj", "{17264D8C-CF5A-4032-9E70-090525D574F2}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventHook.WinForms.Example", "EventHook.Examples\EventHook.WinForms.Example\EventHook.WinForms.Example.csproj", "{17264D8C-CF5A-4032-9E70-090525D574F2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventHook.Tests", "Examples\EventHook.Tests\EventHook.Tests.csproj", "{0075830E-89B6-4E6B-9C49-CA377746AB4C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventHook.ConsoleApp.Example", "EventHook.Examples\EventHook.ConsoleApp.Example\EventHook.ConsoleApp.Example.csproj", "{0075830E-89B6-4E6B-9C49-CA377746AB4C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution