private void OnFullScreen(FullScreenMessage fullScreenMessage) { if (fullScreenMessage.FullScreen) { _mediaPlayer.Active(); UpdateTime(); _appointment.Active(); _statusPhone.Active(); } else { } }
/// <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(); }