Esempio n. 1
0
 private void PresentationView_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         FullScreen fs = new FullScreen();
         fs.LeaveFullScreenMode(this);
         _controller.getMain().getSettingsController().getModel().Fullscreen = false;
     }
 }
Esempio n. 2
0
        private void btnToggleFullscreen_Click(object sender, EventArgs e)
        {
            _controller.getModel().Fullscreen = !_controller.getModel().Fullscreen;

            FullScreen fullScreen = new FullScreen();

            if(_controller.getModel().Fullscreen)
            {
                fullScreen.EnterFullScreenMode(_controller.getMainController().getPresentationController().getView());
            }
            else
            {
                fullScreen.LeaveFullScreenMode(_controller.getMainController().getPresentationController().getView());
            }
        }