diff --git a/DisplayMagician/DesktopNotificationActivator.cs b/DisplayMagician/DesktopNotificationActivator.cs index ad451c3..03b8adf 100644 --- a/DisplayMagician/DesktopNotificationActivator.cs +++ b/DisplayMagician/DesktopNotificationActivator.cs @@ -1,7 +1,6 @@ using System; using System.Runtime.InteropServices; using DesktopNotifications; -//using static DesktopNotifications.NotificationActivator; using Microsoft.QueryStringDotNET; using System.Windows.Forms; using DisplayMagician.UIForms; @@ -21,7 +20,6 @@ namespace DisplayMagician Program.AppMainForm.Invoke((MethodInvoker)delegate { // This code is running on the main UI thread! - // Parse the query string (using NuGet package QueryString.NET) QueryString args = QueryString.Parse(arguments); @@ -36,10 +34,7 @@ namespace DisplayMagician case "open": // Open the Main DisplayMagician Window - //OpenWindowIfNeeded(); Program.AppMainForm.openApplicationWindow(); - - break; // Background: Quick reply to the conversation @@ -47,24 +42,11 @@ namespace DisplayMagician // Exit the application (overriding the close restriction) Program.AppMainForm.exitApplication(); - break; case "stop": MessageBox.Show("User just asked DisplayMagician to stop monitoring the game"); - /*// Get the response the user typed - string msg = userInput["tbReply"]; - - // And send this message - SendMessage(msg); - - // If there's no windows open, exit the app - if (App.Current.Windows.Count == 0) - { - Application.Current.Shutdown(); - }*/ - break; default: @@ -85,12 +67,6 @@ namespace DisplayMagician // Activate the window, bringing it to focus Program.AppMainForm.openApplicationWindow(); - //Program.AppMainForm.openApplicationWindow(); - - //Program.AppMainForm.Activate(); - - // And make sure to maximize the window too, in case it was currently minimized - //Program.AppMainForm.WindowState = FormWindowState.Normal; } } } diff --git a/DisplayMagician/GameLibraries/Game.cs b/DisplayMagician/GameLibraries/Game.cs index 1cac3ef..adca600 100644 --- a/DisplayMagician/GameLibraries/Game.cs +++ b/DisplayMagician/GameLibraries/Game.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DisplayMagician.GameLibraries +namespace DisplayMagician.GameLibraries { public class Game { diff --git a/DisplayMagician/GameLibraries/SteamAppInfoParser/AppInfo.cs b/DisplayMagician/GameLibraries/SteamAppInfoParser/AppInfo.cs index bb8f768..900ebef 100644 --- a/DisplayMagician/GameLibraries/SteamAppInfoParser/AppInfo.cs +++ b/DisplayMagician/GameLibraries/SteamAppInfoParser/AppInfo.cs @@ -2,9 +2,6 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using ValveKeyValue; namespace DisplayMagician.GameLibraries.SteamAppInfoParser diff --git a/DisplayMagician/GameLibraries/SteamAppInfoParser/Package.cs b/DisplayMagician/GameLibraries/SteamAppInfoParser/Package.cs index 2a2ba58..f1be6d6 100644 --- a/DisplayMagician/GameLibraries/SteamAppInfoParser/Package.cs +++ b/DisplayMagician/GameLibraries/SteamAppInfoParser/Package.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.ObjectModel; using ValveKeyValue; namespace DisplayMagician.GameLibraries.SteamAppInfoParser diff --git a/DisplayMagician/GameLibraries/SteamAppInfoParser/PackageInfo.cs b/DisplayMagician/GameLibraries/SteamAppInfoParser/PackageInfo.cs index 389ab40..8b7d125 100644 --- a/DisplayMagician/GameLibraries/SteamAppInfoParser/PackageInfo.cs +++ b/DisplayMagician/GameLibraries/SteamAppInfoParser/PackageInfo.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using ValveKeyValue; namespace DisplayMagician.GameLibraries.SteamAppInfoParser diff --git a/DisplayMagician/GameLibraries/UplayConfigurationParser/UplayConfigurationParser.cs b/DisplayMagician/GameLibraries/UplayConfigurationParser/UplayConfigurationParser.cs index 4b9f405..4ef7932 100644 --- a/DisplayMagician/GameLibraries/UplayConfigurationParser/UplayConfigurationParser.cs +++ b/DisplayMagician/GameLibraries/UplayConfigurationParser/UplayConfigurationParser.cs @@ -4,6 +4,9 @@ using System.Linq; using System.Text; using System.Threading.Tasks; +// This configuration parses logic is kept here for possible future use +// It was really difficult to find this logic in some obscure webpage +// so I'm keeping it in case I need it later. namespace DisplayMagician.GameLibraries.UplayConfigurationParser { class UplayConfigurationParser diff --git a/DisplayMagician/IconFromFile.cs b/DisplayMagician/IconFromFile.cs index d11bb0d..1670579 100644 --- a/DisplayMagician/IconFromFile.cs +++ b/DisplayMagician/IconFromFile.cs @@ -1,13 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Runtime.InteropServices; -//using System.Windows; -using System.Drawing.Imaging; -//using System.Windows.Media.Imaging; - -using System.Diagnostics; using System.Drawing; using System.Windows; diff --git a/DisplayMagician/IconUtils.cs b/DisplayMagician/IconUtils.cs index 3f44abd..d7083f1 100644 --- a/DisplayMagician/IconUtils.cs +++ b/DisplayMagician/IconUtils.cs @@ -2,10 +2,8 @@ using System.Collections.Generic; using System.Drawing; using System.IO; -using System.Linq; using System.Runtime.InteropServices; using System.Security; -using System.Text; namespace IconUtils { diff --git a/DisplayMagician/Program.cs b/DisplayMagician/Program.cs index 18ab395..54e6ed6 100644 --- a/DisplayMagician/Program.cs +++ b/DisplayMagician/Program.cs @@ -1,6 +1,5 @@ using System; using McMaster.Extensions.CommandLineUtils; -using System.Diagnostics; using System.IO; using System.Linq; using System.Net; @@ -173,8 +172,6 @@ namespace DisplayMagician { UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.StopParsingAndCollect, }; - //app.Name = "HeliosDM+"; - //app.Name = Assembly.GetEntryAssembly().GetName().Name; app.Description = "This application helps configure your NVIDIA Videocard for multiple displays."; app.ExtendedHelpText = "This application helps configure your NVIDIA Videocard for multiple displays. It has some nifty features such as the " + Environment.NewLine + " ability to temporarily change your screen settings while you are playing a game, and then change them back once finished."; diff --git a/DisplayMagician/ProgramSettings.cs b/DisplayMagician/ProgramSettings.cs index 7a5d508..dd3f45b 100644 --- a/DisplayMagician/ProgramSettings.cs +++ b/DisplayMagician/ProgramSettings.cs @@ -2,7 +2,6 @@ using System; using System.IO; using System.Text; -using NLog; namespace DisplayMagician { diff --git a/DisplayMagician/Validators.cs b/DisplayMagician/Validators.cs index 450df63..74319e5 100644 --- a/DisplayMagician/Validators.cs +++ b/DisplayMagician/Validators.cs @@ -8,9 +8,6 @@ using McMaster.Extensions.CommandLineUtils; using McMaster.Extensions.CommandLineUtils.Validation; using System.ComponentModel.DataAnnotations; using DisplayMagicianShared; -using DisplayMagician.GameLibraries; -using System.Text.RegularExpressions; -using System.ServiceModel.Dispatcher; namespace DisplayMagician { diff --git a/DisplayMagicianShared/SharedLogger.cs b/DisplayMagicianShared/SharedLogger.cs index 2be2af0..d34c485 100644 --- a/DisplayMagicianShared/SharedLogger.cs +++ b/DisplayMagicianShared/SharedLogger.cs @@ -1,10 +1,5 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Text.RegularExpressions; -using System.Threading.Tasks; namespace DisplayMagicianShared {