Index: src/Common/DelftTools.Controls.Swf/ExceptionDialog.cs
===================================================================
diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a
--- src/Common/DelftTools.Controls.Swf/ExceptionDialog.cs (.../ExceptionDialog.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9)
+++ src/Common/DelftTools.Controls.Swf/ExceptionDialog.cs (.../ExceptionDialog.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a)
@@ -7,25 +7,20 @@
{
public partial class ExceptionDialog : Form
{
+ public event EventHandler RestartClicked;
+
+ public event EventHandler ExitClicked;
+
+ public event EventHandler ContinueClicked;
+
+ public event EventHandler OpenLogClicked;
private Exception exception;
///
/// Initializes a new instance of the class.
- ///
- /// Default constructor is required by designer
///
- internal ExceptionDialog()
- {
- InitializeComponent();
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
/// The exception.
- public ExceptionDialog(Exception exception) : this(exception, "")
- {
- }
+ public ExceptionDialog(Exception exception) : this(exception, "") {}
///
/// Initializes a new instance of the class.
@@ -40,9 +35,22 @@
exceptionTextBox.Text += text;
}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Default constructor is required by designer
+ ///
+ internal ExceptionDialog()
+ {
+ InitializeComponent();
+ }
+
public Exception Exception
{
- get { return exception; }
+ get
+ {
+ return exception;
+ }
private set
{
exception = value;
@@ -51,6 +59,16 @@
}
}
+ public string ExceptionText
+ {
+ get
+ {
+ return GetExceptionText(exception);
+ }
+ }
+
+ public Button ContinueButton { get; private set; }
+
private string GetExceptionText(Exception e)
{
if (e == null)
@@ -60,7 +78,7 @@
var str = exception.ToString();
- if(exception.InnerException != null)
+ if (exception.InnerException != null)
{
str += "Inner Exception:\n";
str += exception.InnerException.ToString();
@@ -77,27 +95,12 @@
return str;
}
- public string ExceptionText { get { return GetExceptionText(exception); } }
-
- public Button ContinueButton
- {
- get { return buttonContinue; }
- }
-
- public event EventHandler RestartClicked;
-
- public event EventHandler ExitClicked;
-
- public event EventHandler ContinueClicked;
-
- public event EventHandler OpenLogClicked;
-
private void buttonRestart_Click(object sender, EventArgs e)
{
buttonRestart.Enabled = false;
buttonExit.Enabled = false;
- if(RestartClicked != null)
+ if (RestartClicked != null)
{
RestartClicked(this, null);
}
@@ -139,4 +142,4 @@
}
}
}
-}
+}
\ No newline at end of file