public void Unload() { Application.Current.Dispatcher.BeginInvoke(new Action(() => { UnhookEvents(); window.Close(); window = null; })); }
private void HookEvents() { Application.Current.Dispatcher.BeginInvoke(new Action(() => { if (window is null) { window = new DebuggerWindow(); window.SetGameContext(Context); window.Show(); } })); }