private void ProcessTextBoxQueue() { string text = TextboxQueue.DequeueConcat(); if (!String.IsNullOrEmpty(text)) { Textbox.AppendText(text); Textbox.ScrollToEnd(); } }
private void Fill(string gameName, string version, string platform, string fileName, string message, string innerMessage, string stackTrace) { Textbox.Clear(); Textbox.AppendText("Game name: "); Textbox.AppendText(gameName); Textbox.AppendText(Environment.NewLine); Textbox.AppendText("Engine version: "); Textbox.AppendText(version.ToString()); Textbox.AppendText(Environment.NewLine); Textbox.AppendText("Platform: "); Textbox.AppendText(platform.ToString()); Textbox.AppendText(Environment.NewLine); if (fileName != null) { Textbox.AppendText("File name: "); Textbox.AppendText(fileName.ToString()); Textbox.AppendText(Environment.NewLine); } Textbox.AppendText(Environment.NewLine); Textbox.AppendText("Error message: "); Textbox.AppendText(message); Textbox.AppendText(Environment.NewLine); Textbox.AppendText(Environment.NewLine); if (innerMessage != null) { Textbox.AppendText("Inner message: "); Textbox.AppendText(innerMessage); Textbox.AppendText(Environment.NewLine); Textbox.AppendText(Environment.NewLine); } Textbox.AppendText("Stack trace: "); Textbox.AppendText(stackTrace); Textbox.AppendText(Environment.NewLine); Textbox.AppendText(" "); }