From 5f56d07f19b28fa80b4c76921dc712397397bb47 Mon Sep 17 00:00:00 2001 From: fyr77 Date: Mon, 3 Aug 2020 19:54:08 +0200 Subject: [PATCH] working towards 2.0 there is a bug in my gpu detection code somewhere but i don't have an nvidia gpu right now to debug it. hmm. --- EnvyUpdate/EnvyUpdate.csproj | 23 ++- EnvyUpdate/GlobalVars.cs | 16 +- EnvyUpdate/InfoWindow.xaml | 6 +- EnvyUpdate/InfoWindow.xaml.cs | 74 ++++++- EnvyUpdate/MainWindow.xaml | 28 ++- EnvyUpdate/MainWindow.xaml.cs | 106 ++++++---- EnvyUpdate/Notify.cs | 2 +- EnvyUpdate/Properties/Resources.Designer.cs | 188 +++++++++++++++--- .../Properties/Resources.de.Designer.cs | 0 EnvyUpdate/Properties/Resources.de.resx | 168 ++++++++++++++++ EnvyUpdate/Properties/Resources.resx | 61 +++++- EnvyUpdate/Util.cs | 52 ++++- EnvyUpdate/packages.config | 3 +- 13 files changed, 620 insertions(+), 107 deletions(-) create mode 100644 EnvyUpdate/Properties/Resources.de.Designer.cs create mode 100644 EnvyUpdate/Properties/Resources.de.resx diff --git a/EnvyUpdate/EnvyUpdate.csproj b/EnvyUpdate/EnvyUpdate.csproj index dc75b16..edc0a08 100644 --- a/EnvyUpdate/EnvyUpdate.csproj +++ b/EnvyUpdate/EnvyUpdate.csproj @@ -1,5 +1,6 @@  + @@ -64,6 +65,8 @@ ..\packages\Hardcodet.NotifyIcon.Wpf.1.0.8\lib\net451\Hardcodet.Wpf.TaskbarNotification.dll + + ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll @@ -97,6 +100,11 @@ InfoWindow.xaml + + Resources.de.resx + True + True + @@ -130,8 +138,12 @@ Settings.settings True + + PublicResXFileCodeGenerator + Resources.de.Designer.cs + - ResXFileCodeGenerator + PublicResXFileCodeGenerator Resources.Designer.cs @@ -161,16 +173,15 @@ True - - - + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + + - + \ No newline at end of file diff --git a/EnvyUpdate/GlobalVars.cs b/EnvyUpdate/GlobalVars.cs index 4556a87..9b85493 100644 --- a/EnvyUpdate/GlobalVars.cs +++ b/EnvyUpdate/GlobalVars.cs @@ -1,14 +1,18 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.IO; namespace EnvyUpdate { class GlobalVars { - public static string gpuName = null; - public static bool mobile = false; + public static bool isMobile = false; + public static readonly string exeloc = System.Reflection.Assembly.GetEntryAssembly().Location; + public static readonly string exepath = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\"; + public static readonly string startmenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu); + public static readonly string version = "2.0"; + public static readonly string appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\envyupdate\\"; + public static readonly string startup = Environment.GetFolderPath(Environment.SpecialFolder.Startup); + public static readonly string desktopOverride = exepath + "desktop.envy"; + public static readonly string mobileOverride = exepath + "mobile.envy"; } } diff --git a/EnvyUpdate/InfoWindow.xaml b/EnvyUpdate/InfoWindow.xaml index 08ba252..e05ca2d 100644 --- a/EnvyUpdate/InfoWindow.xaml +++ b/EnvyUpdate/InfoWindow.xaml @@ -4,10 +4,11 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:EnvyUpdate" + xmlns:p="clr-namespace:EnvyUpdate.Properties" mc:Ignorable="d" - Title="InfoWindow" Height="255" Width="286"> + Title="" Height="255" Width="286" ResizeMode="NoResize" WindowStyle="ToolWindow" SizeToContent="WidthAndHeight"> -