Пример #1
0
 /// <summary>
 /// Shows the screensaver.
 /// </summary>
 private static void ShowScreensaver()
 {
     // loops through all the computer's screens
     foreach (Screen screen in Screen.AllScreens)
     {
         // creates a form just for that screen and passes it the bounds of that screen
         ScreensaverForm screensaver = new ScreensaverForm(screen.Bounds, screen.Primary);
         screensaver.Show();
     }
 }
Пример #2
0
 /// <summary>
 /// Shows the screensaver.
 /// </summary>
 private static void ShowScreensaver()
 {
     // loops through all the computer's screens
     foreach (Screen screen in Screen.AllScreens)
     {
         // creates a form just for that screen and passes it the bounds of that screen
         ScreensaverForm screensaver = new ScreensaverForm(screen.Bounds, screen.Primary);
         screensaver.Show();
     }
 }