summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-05-18 16:23:25 +0000
committersr55 <[email protected]>2010-05-18 16:23:25 +0000
commit9d86956c37eb3ae8bdb02275aac9e2db8cee187b (patch)
treece85ae1c15f2a9ede0321c7fba73492b1b0847a8 /win/C#/Functions
parent8ce6a2514aa10e3ad28c34b8933238001b15c7d4 (diff)
WinGui:
- Added an exception window which allows the exceptions to be copied by the user rather than using a message box. (Long overdue). Moved some of the most common exceptions over to using it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3301 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r--win/C#/Functions/Main.cs8
-rw-r--r--win/C#/Functions/QueryParser.cs4
2 files changed, 9 insertions, 3 deletions
diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs
index 552c6a95b..6d960efcf 100644
--- a/win/C#/Functions/Main.cs
+++ b/win/C#/Functions/Main.cs
@@ -162,7 +162,9 @@ namespace Handbrake.Functions
}
catch (Exception exc)
{
- MessageBox.Show("Unable to save Chapter Makrers file! \nChapter marker names will NOT be saved in your encode \n\n" + exc, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ frmExceptionWindow exceptionWindow = new frmExceptionWindow();
+ exceptionWindow.Setup("Unable to save Chapter Makrers file! \nChapter marker names will NOT be saved in your encode", exc.ToString());
+ exceptionWindow.ShowDialog();
return false;
}
}
@@ -328,7 +330,9 @@ namespace Handbrake.Functions
}
catch (Exception e)
{
- MessageBox.Show("Unable to retrieve version information from the CLI. \nError:\n" + e);
+ frmExceptionWindow exceptionWindow = new frmExceptionWindow();
+ exceptionWindow.Setup("Unable to retrieve version information from the CLI.", e.ToString());
+ exceptionWindow.ShowDialog();
}
}
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs
index 4d01c91de..8523fc178 100644
--- a/win/C#/Functions/QueryParser.cs
+++ b/win/C#/Functions/QueryParser.cs
@@ -633,7 +633,9 @@ namespace Handbrake.Functions
}
catch (Exception exc)
{
- MessageBox.Show("An error has occured in the Query Parser.\n\n" + exc, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ frmExceptionWindow exceptionWindow = new frmExceptionWindow();
+ exceptionWindow.Setup("An error has occured in the Query Parser.", exc.ToString());
+ exceptionWindow.ShowDialog();
}
#endregion