Exemple #1
0
 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();
 }
Exemple #2
0
        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();
            }
        }