-
Notifications
You must be signed in to change notification settings - Fork 0
/
DumpExceptionForm.cs
46 lines (38 loc) · 1.07 KB
/
DumpExceptionForm.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
public partial class DumpExceptionForm : Form
{
private Exception m_exception;
public DumpExceptionForm(Exception _xcp)
{
m_exception = _xcp;
InitializeComponent();
}
private void DumpExceptionForm_Load(object sender, EventArgs e)
{
this.Text = Application.ProductName + " - " + this.Text;
txtType.Text = m_exception.GetType().ToString();
txtMessage.Text = m_exception.Message;
txtStackTrace.Text = m_exception.StackTrace;
}
private void btnContinue_Click(object sender, EventArgs e)
{
this.Close();
}
private void btnThrowException_Click(object sender, EventArgs e)
{
throw new ApplicationException(
"User choosed to throw ApplicationException from DumpExceptionForm"
+ " that rised with {" + m_exception.Message + "} exception."
, m_exception);
}
private void btnExitAplication_Click(object sender, EventArgs e)
{
Application.Exit();
}
};