/// <summary> /// Show the LocoIO inspector form /// </summary> private void ShowLog() { if (logForm == null) { logForm = new LogForm(); logForm.FormClosed += (s, x) => logForm = null; } logForm.Initialize(appState.RailwayState); logForm.Show(this); }