Debugging changes

Add LogStatus method to BOTWConsole
This commit is contained in:
Chev 2021-01-10 20:04:53 -08:00
parent 4043969f15
commit 3faa4b3d90

View file

@ -7,11 +7,14 @@ namespace BOTWToolset.Debugging
static class BOTWConsole
{
private readonly static TextBox _console;
private readonly static Label _status;
static BOTWConsole()
{
var dashboard = Application.Current.Windows.OfType<Dashboard>().ToArray()[0];
var tabControl = dashboard.tabTSCB;
_console = tabControl.TSCBConsole;
_status = dashboard.LabelStatus;
}
public static void Log(object text)
@ -29,5 +32,10 @@ namespace BOTWToolset.Debugging
{
Log("[ERROR]" + text);
}
public static void LogStatus(object text)
{
_status.Content = text.ToString();
}
}
}