diff options
author | sr55 <[email protected]> | 2009-01-29 21:49:05 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-01-29 21:49:05 +0000 |
commit | 0333e36d98952fc75b07a35bb2dd5affe526b25a (patch) | |
tree | 98bfbe7260eae1cffba33107bd19379cadad2b11 /win/C#/frmPreview.cs | |
parent | 9cfe126a970a4a7c544b8142224675a93637d31e (diff) |
WinGui:
- Code cleanup
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2106 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmPreview.cs')
-rw-r--r-- | win/C#/frmPreview.cs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/win/C#/frmPreview.cs b/win/C#/frmPreview.cs index e00bcd976..029ac85d2 100644 --- a/win/C#/frmPreview.cs +++ b/win/C#/frmPreview.cs @@ -28,8 +28,7 @@ namespace Handbrake private void play()
{
- player = new Thread(OpenMovie);
- player.IsBackground = true;
+ player = new Thread(OpenMovie) {IsBackground = true};
player.Start();
}
@@ -38,9 +37,9 @@ namespace Handbrake {
try
{
- if (this.InvokeRequired)
+ if (InvokeRequired)
{
- this.BeginInvoke(new UpdateUIHandler(OpenMovie));
+ BeginInvoke(new UpdateUIHandler(OpenMovie));
return;
}
QTControl.URL = currently_playing;
@@ -59,11 +58,11 @@ namespace Handbrake catch (COMException ex)
{
QTUtils qtu = new QTUtils();
- MessageBox.Show("Unable to open movie:\n\nError Code: " + ex.ErrorCode.ToString("X") + "\nQT Error code : " + qtu.QTErrorFromErrorCode(ex.ErrorCode).ToString());
+ MessageBox.Show("Unable to open movie:\n\nError Code: " + ex.ErrorCode.ToString("X") + "\nQT Error code : " + qtu.QTErrorFromErrorCode(ex.ErrorCode));
}
catch (Exception ex)
{
- MessageBox.Show("Unable to open movie:\n\n" + ex.ToString());
+ MessageBox.Show("Unable to open movie:\n\n" + ex);
}
}
@@ -92,9 +91,9 @@ namespace Handbrake {
try
{
- if (this.InvokeRequired)
+ if (InvokeRequired)
{
- this.BeginInvoke(new UpdateUIHandler(encodeCompleted));
+ BeginInvoke(new UpdateUIHandler(encodeCompleted));
return;
}
btn_encode.Enabled = true;
@@ -108,7 +107,7 @@ namespace Handbrake }
catch (Exception exc)
{
- MessageBox.Show("frmPreview.cs encodeCompleted " + exc.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ MessageBox.Show("frmPreview.cs encodeCompleted " + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
#endregion
|