Пример #1
0
 private void OnFullScreen(FullScreenMessage fullScreenMessage)
 {
     if (fullScreenMessage.FullScreen)
     {
         _mediaPlayer.Active();
         UpdateTime();
         _appointment.Active();
         _statusPhone.Active();
     }
     else
     {
     }
 }
Пример #2
0
        /// <summary>
        /// Handler for event - swith application to fullscreen mode and back
        /// </summary>
        /// <param name="fullScreenMessage"></param>
        private void OnFullScreen(FullScreenMessage fullScreenMessage)
        {
            Action action = () => SwitchFullScreen(fullScreenMessage.FullScreen);

            if (theForm.InvokeRequired)
                theForm.Invoke(action);
            else
                action();
        }