Bricklayer.Common.ExceptionForm.ExceptionForm C# (CSharp) Метод

ExceptionForm() публичный Метод

Create a new error report dialog from a runtime exception
public ExceptionForm ( Exception exception ) : System
exception Exception
Результат System
        public ExceptionForm(Exception exception)
        {
            Random r = new Random();
            InitializeComponent();
            errorBox.Text = "Collecting system information...";
            string[] reasons = new string[] { "Blame Cyral", "Sorry :(", "Darn Bugs...", "Report this!", "Ooops!", "Our bad...", "Please wait!", "We broke it.", "It crashed :|" };
            errorBox.Text += Environment.NewLine + reasons[r.Next(0, reasons.Length)];
            Thread CollectInfo = new Thread(delegate()
            {
                CollectSystemInfo(exception);
            });
            CollectInfo.Start();
        }