From c2a61665d6398b2d92c6de40356e0535f695220e Mon Sep 17 00:00:00 2001 From: Lorenz Cuno Klopfenstein Date: Sat, 13 Oct 2012 15:37:28 +0200 Subject: [PATCH] Added Windows 8 support. --- OnTopReplica/OnTopReplica.csproj | 76 ++++---------------------- OnTopReplica/PlatformSupport.cs | 4 +- OnTopReplica/Platforms/WindowsEight.cs | 16 ++++++ OnTopReplica/Platforms/WindowsSeven.cs | 1 - 4 files changed, 30 insertions(+), 67 deletions(-) create mode 100644 OnTopReplica/Platforms/WindowsEight.cs diff --git a/OnTopReplica/OnTopReplica.csproj b/OnTopReplica/OnTopReplica.csproj index 6fcda6a..8ead39a 100644 --- a/OnTopReplica/OnTopReplica.csproj +++ b/OnTopReplica/OnTopReplica.csproj @@ -137,7 +137,18 @@ + + + True + True + Resources.resx + + + True + True + Settings.settings + Form @@ -168,66 +179,11 @@ GroupSwitchPanel.cs - - True - True - Strings.cs.resx - - - True - True - Strings.da.resx - - - True - True - Strings.de.resx - True True Strings.resx - - True - True - Strings.es.resx - - - True - True - Strings.fi.resx - - - True - True - Strings.it.resx - - - True - True - Strings.no.resx - - - True - True - Strings.pl.resx - - - True - True - Strings.pt-BR.resx - - - True - True - Strings.pt.resx - - - True - True - Strings.ru.resx - @@ -365,21 +321,11 @@ ResXFileCodeGenerator Strings.pt.Designer.cs - - True - Resources.resx - True - SettingsSingleFileGenerator Settings.Designer.cs - - True - Settings.settings - True - UserControl diff --git a/OnTopReplica/PlatformSupport.cs b/OnTopReplica/PlatformSupport.cs index e13570d..5ecb432 100644 --- a/OnTopReplica/PlatformSupport.cs +++ b/OnTopReplica/PlatformSupport.cs @@ -18,7 +18,9 @@ namespace OnTopReplica { return new Other(); if (os.Version.Major == 6) { - if (os.Version.Minor >= 1) + if (os.Version.Minor >= 2) + return new WindowsEight(); + else if (os.Version.Minor == 1) return new WindowsSeven(); else return new WindowsVista(); diff --git a/OnTopReplica/Platforms/WindowsEight.cs b/OnTopReplica/Platforms/WindowsEight.cs new file mode 100644 index 0000000..b5ef780 --- /dev/null +++ b/OnTopReplica/Platforms/WindowsEight.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using OnTopReplica.Native; + +namespace OnTopReplica.Platforms { + class WindowsEight : WindowsSeven { + + public override void PostHandleFormInit(MainForm form) { + //Noop + } + + } +} diff --git a/OnTopReplica/Platforms/WindowsSeven.cs b/OnTopReplica/Platforms/WindowsSeven.cs index 301957e..a494248 100644 --- a/OnTopReplica/Platforms/WindowsSeven.cs +++ b/OnTopReplica/Platforms/WindowsSeven.cs @@ -56,7 +56,6 @@ namespace OnTopReplica.Platforms { } } - } }