diff options
author | sr55 <[email protected]> | 2008-01-08 17:26:06 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-01-08 17:26:06 +0000 |
commit | dd2fb22560796e89d3349a3ad790efed8d7ac092 (patch) | |
tree | 78c4a4ffd50bd1527e3814eed10ad3d07b87c4e4 /win/C# | |
parent | 5eed57a10ac4b0e351d00b67f9f990f79ba2d800 (diff) |
WinGui:
- CMD window no longer appears during scanning
- Fixed FormatException on start up in the Development expiry code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1174 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/Program.cs | 5 | ||||
-rw-r--r-- | win/C#/frmReadDVD.cs | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs index 25a4d415d..22b601f01 100644 --- a/win/C#/Program.cs +++ b/win/C#/Program.cs @@ -17,6 +17,7 @@ using System.IO; using System.Diagnostics;
using System.Threading;
using System.Runtime.InteropServices;
+using System.Globalization;
namespace Handbrake
@@ -29,10 +30,9 @@ namespace Handbrake [STAThread]
static void Main()
{
-
// Development Code Expiry.
// Remember to comment out on public release!!!
- if (DateTime.Now > DateTime.Parse("20/1/2008")) { MessageBox.Show("Sorry, This development build of Handbrake has expired."); return; }
+ if (DateTime.Now > DateTime.Parse("2008/01/30", new CultureInfo("en-US"))) { MessageBox.Show("Sorry, This development build of Handbrake has expired."); return; }
// Check the system meets the system requirements.
Boolean launch = true;
@@ -61,7 +61,6 @@ namespace Handbrake MessageBox.Show("frmMain.cs - systemCheck() " + exc.ToString());
}
-
// Either Launch or Close the Application
if (launch == true)
{
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index d7a074938..300c21e48 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -90,12 +90,13 @@ namespace Handbrake string strCmdLine = String.Format(@"cmd /c """"{0}"" -i ""{1}"" -t0 -v >""{2}"" 2>&1""", handbrakeCLIPath, inputFile, dvdInfoPath);
- using (Process hbproc = Process.Start("CMD.exe", strCmdLine))
+ ProcessStartInfo hbParseDvd = new ProcessStartInfo("CMD.exe", strCmdLine);
+ hbParseDvd.WindowStyle = ProcessWindowStyle.Hidden;
+ using (Process hbproc = Process.Start(hbParseDvd))
{
hbproc.WaitForExit();
// TODO: Verify exit code if the CLI supports it properly
- }
-
+ }
if (!File.Exists(dvdInfoPath))
{
|