BoringHeroes.MainWindow.DebugReaderStats C# (CSharp) Method

DebugReaderStats() public static method

public static DebugReaderStats ( string text ) : void
text string
return void
        public static void DebugReaderStats(string text)
        {
            if (text == "") return;
            Instance.Dispatcher.Invoke((MethodInvoker) delegate
            {
                var type = text.Split(':')[0];
                switch (type)
                {
                    case "HeroHP":
                        Instance.lblStatHeroHP.Content = text;
                        break;
                    case "Heroes":
                        Instance.lblStatHeroes.Content = text;
                        break;
                    case "Units":
                        Instance.lblStatUnits.Content = text;
                        break;
                    case "Towers":
                        Instance.lblStatTowers.Content = text;
                        break;
                    case "Minimap":
                        Instance.lblStatMinimap.Content = text;
                        break;
                    case "Total":
                        Instance.lblStatTotal.Content = text;
                        break;
                    case "Screenshot":
                        Instance.lblStatScreenRead.Content = text;
                        break;
                }
                Instance.rtbDebug.AppendText(text + "\r");
                Instance.rtbDebug.ScrollToEnd();
            },
                DispatcherPriority.Background);
        }