Use Engine.LastWindow instead of HostApplication.CurrentWindow (new convention)

This commit is contained in:
Michael Becker 2014-06-30 21:37:33 -04:00
parent a0f8aeb384
commit 3e6b8a2669

View File

@ -133,8 +133,8 @@ namespace UniversalEditor.UserInterface
AttachCommandEventHandler("ViewFullScreen", delegate(object sender, EventArgs e)
{
Command cmd = (sender as Command);
HostApplication.CurrentWindow.FullScreen = !HostApplication.CurrentWindow.FullScreen;
cmd.Checked = HostApplication.CurrentWindow.FullScreen;
LastWindow.FullScreen = !LastWindow.FullScreen;
cmd.Checked = LastWindow.FullScreen;
});
#endregion
#region Tools