diff options
Diffstat (limited to 'win/C#/Program.cs')
-rw-r--r-- | win/C#/Program.cs | 12 |
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 |