diff options
author | sr55 <[email protected]> | 2009-12-05 17:01:08 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-12-05 17:01:08 +0000 |
commit | 8209d6c285d54482da16aa5eb7b5dfe96c2b3264 (patch) | |
tree | 046dea4474aa3ec66913845e626becd0b5dc9906 /win/C#/frmActivityWindow.cs | |
parent | 1afb478f0ef8645737284981bd1427f41389b742 (diff) |
WinGui:
- Some improvements to error messages, about window, minor code style fixes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3006 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmActivityWindow.cs')
-rw-r--r-- | win/C#/frmActivityWindow.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs index 61d1b06ca..5f41c799b 100644 --- a/win/C#/frmActivityWindow.cs +++ b/win/C#/frmActivityWindow.cs @@ -23,12 +23,12 @@ namespace Handbrake private static int _position;
private static string _lastMode;
private static string _currentMode;
- private Thread monitor;
- private Boolean kilLThread;
+ private Thread _monitor;
+ private Boolean _kilLThread;
public frmActivityWindow(string mode)
{
- kilLThread = false;
+ _kilLThread = false;
_position = 0;
if (mode == "scan")
SetScanMode();
@@ -39,15 +39,15 @@ namespace Handbrake }
private void NewActivityWindow_Load(object sender, EventArgs e)
{
- monitor = new Thread(LogMonitor);
+ _monitor = new Thread(LogMonitor);
try
{
- monitor.Start();
+ _monitor.Start();
}
catch (Exception exc)
{
- MessageBox.Show(exc.ToString());
+ MessageBox.Show("Unable to monitor HandBrakes log files. Please report this error. If the problem presists, try rebooting your computer.\n\n Debug Informaton:\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@@ -55,7 +55,7 @@ namespace Handbrake {
while (true)
{
- if (!IsHandleCreated || kilLThread) // break out the thread if the window has been disposed.
+ if (!IsHandleCreated || _kilLThread) // break out the thread if the window has been disposed.
break;
// Perform a reset if require.
@@ -135,7 +135,7 @@ namespace Handbrake }
catch (Exception exc)
{
- appendText.AppendFormat("\nERROR: The Log file could not be read. You may need to restart HandBrake! " + exc);
+ appendText.AppendFormat("\n The Log file could not be read. You may need to restart HandBrake! " + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
_position = 0;
ClearWindowText();
}
@@ -161,7 +161,7 @@ namespace Handbrake }
catch (Exception exc)
{
- MessageBox.Show("SetWindowText(): Exception: \n" + exc);
+ MessageBox.Show("Unless you are having problems, you can probably ignore this error. It would not hurt to report this error!\n\nSetWindowText(): Exception: \n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void ClearWindowText()
@@ -181,7 +181,7 @@ namespace Handbrake }
catch (Exception exc)
{
- MessageBox.Show("ClearWindowText(): Exception: \n" + exc);
+ MessageBox.Show("Unless you are having problems, you can probably ignore this error. It would not hurt to report this error!\n\nClearWindowText(): Exception: \n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void PrintLogHeader()
@@ -212,7 +212,7 @@ namespace Handbrake }
catch (Exception exc)
{
- MessageBox.Show("PrintLogHeader(): Exception: \n" + exc);
+ MessageBox.Show("Unless you are having problems, you can probably ignore this error. It would not hurt to report this error!\n\nPrintLogHeader(): Exception: \n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
@@ -318,9 +318,9 @@ namespace Handbrake protected override void OnClosing(CancelEventArgs e)
{
- kilLThread = true;
- monitor.Interrupt();
- monitor.Join();
+ _kilLThread = true;
+ _monitor.Interrupt();
+ _monitor.Join();
e.Cancel = true;
this.Dispose();
base.OnClosing(e);
|