예제 #1
0
        private void ProcessTextBoxQueue()
        {
            string text = TextboxQueue.DequeueConcat();

            if (!String.IsNullOrEmpty(text))
            {
                Textbox.AppendText(text);
                Textbox.ScrollToEnd();
            }
        }
예제 #2
0
        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(" ");
        }