mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Library include cleanup
This commit is contained in:
parent
79f535ce08
commit
25df13e52a
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using DesktopNotifications;
|
using DesktopNotifications;
|
||||||
//using static DesktopNotifications.NotificationActivator;
|
|
||||||
using Microsoft.QueryStringDotNET;
|
using Microsoft.QueryStringDotNET;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using DisplayMagician.UIForms;
|
using DisplayMagician.UIForms;
|
||||||
@ -21,7 +20,6 @@ namespace DisplayMagician
|
|||||||
Program.AppMainForm.Invoke((MethodInvoker)delegate
|
Program.AppMainForm.Invoke((MethodInvoker)delegate
|
||||||
{
|
{
|
||||||
// This code is running on the main UI thread!
|
// This code is running on the main UI thread!
|
||||||
|
|
||||||
// Parse the query string (using NuGet package QueryString.NET)
|
// Parse the query string (using NuGet package QueryString.NET)
|
||||||
QueryString args = QueryString.Parse(arguments);
|
QueryString args = QueryString.Parse(arguments);
|
||||||
|
|
||||||
@ -36,10 +34,7 @@ namespace DisplayMagician
|
|||||||
case "open":
|
case "open":
|
||||||
|
|
||||||
// Open the Main DisplayMagician Window
|
// Open the Main DisplayMagician Window
|
||||||
//OpenWindowIfNeeded();
|
|
||||||
Program.AppMainForm.openApplicationWindow();
|
Program.AppMainForm.openApplicationWindow();
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Background: Quick reply to the conversation
|
// Background: Quick reply to the conversation
|
||||||
@ -47,24 +42,11 @@ namespace DisplayMagician
|
|||||||
|
|
||||||
// Exit the application (overriding the close restriction)
|
// Exit the application (overriding the close restriction)
|
||||||
Program.AppMainForm.exitApplication();
|
Program.AppMainForm.exitApplication();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "stop":
|
case "stop":
|
||||||
|
|
||||||
MessageBox.Show("User just asked DisplayMagician to stop monitoring the game");
|
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;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -85,12 +67,6 @@ namespace DisplayMagician
|
|||||||
|
|
||||||
// Activate the window, bringing it to focus
|
// Activate the window, bringing it to focus
|
||||||
Program.AppMainForm.openApplicationWindow();
|
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace DisplayMagician.GameLibraries
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace DisplayMagician.GameLibraries
|
|
||||||
{
|
{
|
||||||
public class Game
|
public class Game
|
||||||
{
|
{
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using ValveKeyValue;
|
using ValveKeyValue;
|
||||||
|
|
||||||
namespace DisplayMagician.GameLibraries.SteamAppInfoParser
|
namespace DisplayMagician.GameLibraries.SteamAppInfoParser
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
using System;
|
using System.Collections.ObjectModel;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using ValveKeyValue;
|
using ValveKeyValue;
|
||||||
|
|
||||||
namespace DisplayMagician.GameLibraries.SteamAppInfoParser
|
namespace DisplayMagician.GameLibraries.SteamAppInfoParser
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using ValveKeyValue;
|
using ValveKeyValue;
|
||||||
|
|
||||||
namespace DisplayMagician.GameLibraries.SteamAppInfoParser
|
namespace DisplayMagician.GameLibraries.SteamAppInfoParser
|
||||||
|
@ -4,6 +4,9 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
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
|
namespace DisplayMagician.GameLibraries.UplayConfigurationParser
|
||||||
{
|
{
|
||||||
class UplayConfigurationParser
|
class UplayConfigurationParser
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
//using System.Windows;
|
|
||||||
using System.Drawing.Imaging;
|
|
||||||
//using System.Windows.Media.Imaging;
|
|
||||||
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
|
||||||
|
@ -2,10 +2,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace IconUtils
|
namespace IconUtils
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using McMaster.Extensions.CommandLineUtils;
|
using McMaster.Extensions.CommandLineUtils;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
@ -173,8 +172,6 @@ namespace DisplayMagician {
|
|||||||
UnrecognizedArgumentHandling = UnrecognizedArgumentHandling.StopParsingAndCollect,
|
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.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 "
|
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.";
|
+ Environment.NewLine + " ability to temporarily change your screen settings while you are playing a game, and then change them back once finished.";
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using NLog;
|
|
||||||
|
|
||||||
namespace DisplayMagician
|
namespace DisplayMagician
|
||||||
{
|
{
|
||||||
|
@ -8,9 +8,6 @@ using McMaster.Extensions.CommandLineUtils;
|
|||||||
using McMaster.Extensions.CommandLineUtils.Validation;
|
using McMaster.Extensions.CommandLineUtils.Validation;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using DisplayMagicianShared;
|
using DisplayMagicianShared;
|
||||||
using DisplayMagician.GameLibraries;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using System.ServiceModel.Dispatcher;
|
|
||||||
|
|
||||||
namespace DisplayMagician
|
namespace DisplayMagician
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace DisplayMagicianShared
|
namespace DisplayMagicianShared
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user