static Shutdown() { PlatformID id = Environment.OSVersion.Platform; if (id == PlatformID.Win32NT || id == PlatformID.Win32S || id == PlatformID.Win32Windows || id == PlatformID.WinCE) instance = new WindowsShutdown(); else instance = new NullShutdown(); }
static Shutdown() { PlatformID id = Environment.OSVersion.Platform; if (id == PlatformID.Win32NT || id == PlatformID.Win32S || id == PlatformID.Win32Windows || id == PlatformID.WinCE) { instance = new WindowsShutdown(); } else { instance = new NullShutdown(); } }