Move Forms to seperate namespace

This commit is contained in:
Travis Nickles 2019-04-30 14:29:50 -05:00
parent 78dcbe666c
commit f01c86deee
24 changed files with 27 additions and 27 deletions

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class DS4Form partial class DS4Form
{ {

View File

@ -19,7 +19,7 @@ using static DS4Windows.Global;
using System.Security; using System.Security;
using System.Management; using System.Management;
namespace DS4Windows namespace DS4Windows.Forms
{ {
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
public partial class DS4Form : Form public partial class DS4Form : Form

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class DS4Keyboard partial class DS4Keyboard
{ {

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class DS4Keyboard : Form public partial class DS4Keyboard : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class DupBox partial class DupBox
{ {

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class DupBox : Form public partial class DupBox : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class Hotkeys partial class Hotkeys
{ {

View File

@ -5,7 +5,7 @@ using System.Reflection;
using System.Diagnostics; using System.Diagnostics;
using System.Drawing; using System.Drawing;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class Hotkeys : Form public partial class Hotkeys : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class KBM360 partial class KBM360
{ {

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class KBM360 : Form public partial class KBM360 : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class Options partial class Options
{ {

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using static DS4Windows.Global; using static DS4Windows.Global;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class Options : Form public partial class Options : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class RecordBox partial class RecordBox
{ {

View File

@ -9,7 +9,7 @@ using NonFormTimer = System.Timers.Timer;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class RecordBox : Form public partial class RecordBox : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class SaveWhere partial class SaveWhere
{ {

View File

@ -12,7 +12,7 @@ using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using System.Xml; using System.Xml;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class SaveWhere : Form public partial class SaveWhere : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class SpecActions partial class SpecActions
{ {

View File

@ -10,7 +10,7 @@ using System.Windows.Forms;
using System.IO; using System.IO;
using System.Xml; using System.Xml;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class SpecActions : Form public partial class SpecActions : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class WelcomeDialog partial class WelcomeDialog
{ {

View File

@ -11,7 +11,7 @@ using NonFormTimer = System.Timers.Timer;
using System.Threading.Tasks; using System.Threading.Tasks;
using static DS4Windows.Global; using static DS4Windows.Global;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class WelcomeDialog : Form public partial class WelcomeDialog : Form
{ {

View File

@ -1,4 +1,4 @@
namespace DS4Windows namespace DS4Windows.Forms
{ {
partial class WinProgs partial class WinProgs
{ {

View File

@ -12,7 +12,7 @@ using System.Diagnostics;
using System.Threading.Tasks; using System.Threading.Tasks;
using static DS4Windows.Global; using static DS4Windows.Global;
namespace DS4Windows namespace DS4Windows.Forms
{ {
public partial class WinProgs : Form public partial class WinProgs : Form
{ {

View File

@ -35,7 +35,7 @@ namespace DS4Windows
if (s == "driverinstall" || s == "-driverinstall") if (s == "driverinstall" || s == "-driverinstall")
{ {
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.Run(new WelcomeDialog(true)); Application.Run(new Forms.WelcomeDialog(true));
return; return;
} }
else if (s == "re-enabledevice" || s == "-re-enabledevice") else if (s == "re-enabledevice" || s == "-re-enabledevice")
@ -109,7 +109,7 @@ namespace DS4Windows
createControlService(); createControlService();
//rootHub = new ControlService(); //rootHub = new ControlService();
Application.EnableVisualStyles(); Application.EnableVisualStyles();
ds4form = new DS4Form(args); ds4form = new Forms.DS4Form(args);
Application.Run(); Application.Run();
//mutex.ReleaseMutex(); //mutex.ReleaseMutex();
//} //}
@ -166,10 +166,10 @@ namespace DS4Windows
private delegate void SetFormVisableDelegate(Form frm); private delegate void SetFormVisableDelegate(Form frm);
private static void ThreadFormVisable(Form frm) private static void ThreadFormVisable(Form frm)
{ {
if (frm is DS4Form) if (frm is Forms.DS4Form)
{ {
// display the form and bring to foreground. // display the form and bring to foreground.
DS4Form temp = (DS4Form)frm; Forms.DS4Form temp = (Forms.DS4Form)frm;
temp.Show(); temp.Show();
temp.WindowState = FormWindowState.Normal; temp.WindowState = FormWindowState.Normal;
} }

View File

@ -1,7 +1,7 @@
# TODO # TODO
* Re-evaluate HidGuardian * Re-evaluate HidGuardian
* Move forms to new namespace * ~~Move forms to new namespace~~
* ~~Finalize DS4 Emulation~~ * ~~Finalize DS4 Emulation~~
* ~~Raise Sixaxis default dead zones~~ * ~~Raise Sixaxis default dead zones~~
* ~~Evaluate latest ViGEmBus driver and update download URL~~ * ~~Evaluate latest ViGEmBus driver and update download URL~~