Esempio n. 1
0
 private void _displayOverlayForms()
 {
     logger.Debug("Opening overlay forms");
     foreach (var screen in Screen.AllScreens)
     {
         if (screen.Equals(Screen.FromControl(this)))
         { // skip the screen the main window is on
             logger.Trace("Skipping the window of the mainform");
             continue;
         }
         logger.Trace("Overlay form at: {0}", screen.Bounds.Location);
         OverlayForm ofForm = new OverlayForm();
         ofForm.Location = screen.Bounds.Location;
         ofForm.Icon     = Properties.Resources.clock;
         ofForm.Initialize();
         ofForm.Show();
         _lofOverlayForms.Add(ofForm);
     }
 }
Esempio n. 2
0
 private void _displayOverlayForms()
 {
     logger.Debug("Opening overlay forms");
     foreach (var screen in Screen.AllScreens)
     {
         if (screen.Equals(Screen.FromControl(this)))
         { // skip the screen the main window is on
             logger.Trace("Skipping the window of the mainform");
             continue;
         }
         logger.Trace("Overlay form at: {0}", screen.Bounds.Location);
         OverlayForm ofForm = new OverlayForm();
         ofForm.Location = screen.Bounds.Location;
         ofForm.Icon = Properties.Resources.clock;
         ofForm.Initialize();
         ofForm.Show();
         _lofOverlayForms.Add(ofForm);
     }
 }