private void timer1_Tick(object sender, EventArgs e)
 {
     timer1.Stop();
     if (WindowState == FormWindowState.Maximized)
     {
         _videoPlayerContainer.HideControls();
     }
 }
Example #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     timer1.Stop();
     if (IsFullscreen)
     {
         var videoScreen = Screen.FromControl(_videoPlayerContainer);
         var mainScreen  = Screen.FromControl(_mainForm);
         _videoPlayerContainer.HideControls(videoScreen.DeviceName == mainScreen.DeviceName);
     }
 }