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

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

View File

@ -7,11 +7,10 @@ namespace UniversalEditor.UserInterface
{
public static class HostApplication
{
private static IHostApplicationWindow mvarCurrentWindow = null;
/// <summary>
/// Gets or sets the current window of the host application.
/// </summary>
public static IHostApplicationWindow CurrentWindow { get { return mvarCurrentWindow; } set { mvarCurrentWindow = value; } }
public static IHostApplicationWindow CurrentWindow { get { return Engine.CurrentEngine.LastWindow; } set { Engine.CurrentEngine.LastWindow = value; } }
private static HostApplicationOutputWindow mvarOutputWindow = new HostApplicationOutputWindow();
/// <summary>