private static void checkInstance() { if (debugWindow == null) debugWindow = new DebugWindow(); if(!debugWindow.IsVisible) debugWindow.Show(); }