diff options
author | sr55 <[email protected]> | 2010-04-28 18:03:01 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-04-28 18:03:01 +0000 |
commit | 4c0d4df9984e520961b467fde1ab1c2ee7513a67 (patch) | |
tree | f3dd31bf7e398e85593ec4209ba20e787e38241c /win/C#/frmMain.cs | |
parent | 6223188aa629e3ea5bc183c9da8eca4f5b24b19d (diff) |
WinGui:
- Strip any illegal characters from the autoname path
- Display build number in program window title. Also added a hack to force this to display the correct number.
- Imported some settings for Stylecop for resharper 5
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3272 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index f3dd454bb..3e7c2209a 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -12,6 +12,7 @@ namespace Handbrake using System.Drawing;
using System.Globalization;
using System.IO;
+ using System.Reflection;
using System.Threading;
using System.Windows.Forms;
using Functions;
@@ -61,12 +62,14 @@ namespace Handbrake InitializeComponent();
// Update the users config file with the CLI version data.
- lblStatus.Text = "Updating and Checking CLI Version Data ...";
+ lblStatus.Text = "Checking CLI Version Data ...";
Application.DoEvents();
Main.SetCliVersionData();
Main.CheckForValidCliVersion();
+ Version v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
+ this.Text += " " + v.ToString(4);
- // Show the form, but leave disabled until preloading is complete then show the main form
+ // Show the form, but leave disabled until preloading is complete then show the main form)
this.Enabled = false;
this.Show();
Application.DoEvents(); // Forces frmMain to draw
@@ -987,6 +990,8 @@ namespace Handbrake this.Activate();
this.WindowState = FormWindowState.Normal;
notifyIcon.Visible = false;
+
+ this.StartScan(null, 2);
}
#endregion
|