-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmError.cs
34 lines (30 loc) · 937 Bytes
/
frmError.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace _4chget
{
public partial class frmError : Form
{
public frmError(object exc, Language la)
{
InitializeComponent();
lblAEO.Text = la.AnErrorOccurred;
lblDetails.Text = la.Details;
btnOK.Text = la.OK;
string etxt = "";
etxt += "Type: \r\n" + exc.GetType().Name;
etxt += "\r\nMessage: \r\n" + ((Exception)exc).Message;
etxt += "\r\nSource: \r\n" + ((Exception)exc).Source;
etxt += "\r\nStack Trace: \r\n" + ((Exception)exc).StackTrace;
txtError.Text = etxt;
}
private void button1_Click(object sender, EventArgs e)
{
Close();
}
}
}