freeso/TSOClient/FSO.UI/Debug/FSOExceptionDisplay.cs
RHY3756547 59ae89d8fe [UI] Large scale refactor, remove mobile projects
- Also some optimisations for animation, zoom level switch, changes to
pie menu head.
2017-08-07 17:44:59 +01:00

42 lines
972 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace FSO.Client.Debug
{
public partial class FSOExceptionDisplay : Form
{
public FSOExceptionDisplay()
{
InitializeComponent();
}
public FSOExceptionDisplay(string trace) : this()
{
ExceptionBox.Text = trace;
}
private void ContinueButton_Click(object sender, EventArgs e)
{
Close();
}
private void CopyButton_Click(object sender, EventArgs e)
{
var text = ExceptionBox.Text;
var t = new Thread(() =>
{
Clipboard.SetText(text);
});
t.SetApartmentState(ApartmentState.STA);
t.Start();
}
}
}