summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/Main.cs
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/Main.cs
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/Main.cs')
-rw-r--r--win/C#/Functions/Main.cs8
1 files changed, 6 insertions, 2 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();
}
}