summaryrefslogtreecommitdiffstats
path: root/win/C#/Program.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-07-22 10:44:54 +0000
committersr55 <[email protected]>2010-07-22 10:44:54 +0000
commit994b648e3ea1d42951221b9cdb0d2b5f4310b652 (patch)
tree95a33f1f00dd832944f558ca4bdb1f71198bf3d7 /win/C#/Program.cs
parent8fc8e81a0856e8b859e675bf1df055f2d4bfbdac (diff)
WinGui:
- Removed old settings debug tab, Code refactoring and some tweaks to stylecop so it's less noisy. Upgraded to Stylecop 4.4.0 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3452 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Program.cs')
-rw-r--r--win/C#/Program.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs
index 1c428c874..42d9d9b87 100644
--- a/win/C#/Program.cs
+++ b/win/C#/Program.cs
@@ -10,12 +10,12 @@ namespace Handbrake
using System.IO;
using System.Windows.Forms;
+ using Handbrake.Presets;
+
using HandBrake.ApplicationServices;
using Handbrake.Properties;
- using Presets;
-
/// <summary>
/// HandBrake Starts Here
/// </summary>
@@ -24,13 +24,14 @@ namespace Handbrake
/// <summary>
/// The main entry point for the application.
/// </summary>
+ /// <param name="args">Arguments passed in from the shortcut/executable</param>
[STAThread]
public static void Main(string[] args)
{
InstanceId = Process.GetProcessesByName("HandBrake").Length;
// Handle any unhandled exceptions
- AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
+ AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
// Attempt to upgrade / keep the users settings between versions
if (Settings.Default.UpdateRequired)
@@ -121,9 +122,6 @@ namespace Handbrake
}
}
-
- public static int InstanceId = 0;
-
-
+ public static int InstanceId;
}
} \ No newline at end of file