From 938e7d1b42fdf39aa2ef1856ef57f2a1a1b2ea72 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Mon, 30 Jun 2014 07:12:14 -0400 Subject: [PATCH] Added ViewFullScreen event handler --- .../UniversalEditor.UserInterface/Engine.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs index 98ea39bb..71533fbd 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs @@ -129,8 +129,16 @@ namespace UniversalEditor.UserInterface ExitApplication(); }); #endregion - #region Tools - // ToolsOptions should actually be under the Edit menu as "Preferences" on Linux systems + #region View + AttachCommandEventHandler("ViewFullScreen", delegate(object sender, EventArgs e) + { + Command cmd = (sender as Command); + HostApplication.CurrentWindow.FullScreen = !HostApplication.CurrentWindow.FullScreen; + cmd.Checked = HostApplication.CurrentWindow.FullScreen; + }); + #endregion + #region Tools + // ToolsOptions should actually be under the Edit menu as "Preferences" on Linux systems AttachCommandEventHandler("ToolsOptions", delegate(object sender, EventArgs e) { LastWindow.ShowOptionsDialog();