private void visibilityChanged(ValueChangedEvent <Visibility> state) { performanceLogging.Value = state.NewValue == Visibility.Visible; if (state.NewValue == Visibility.Visible) { GlobalStatistics.OutputToLog(); listener = new DotNetRuntimeListener(); } else { listener?.Dispose(); } }
private void load(GameHost host) { listener = new DotNetRuntimeListener(); performanceLogging = host.PerformanceLogging.GetBoundCopy(); }
private void load() { listener = new DotNetRuntimeListener(); }