public void OpenWindow(OutputWindowViewModel window) { if (!OpenWindows.Any(openWin => openWin.NodeModel == window.NodeModel && openWin.OutputModel == window.OutputModel)) { OpenWindows.Add(window); IoC.Get <IWindowManagerEx>().ShowWindow(window, owningModel: this); // Forward key presses if (window.GetView() is System.Windows.Window) { ((System.Windows.Window)window.GetView()).KeyUp += (_, e) => ((System.Windows.Window)GetView()).RaiseEvent(e); } if (!Model.IsPlaying) { Model.RenderTick(new[] { window.NodeModel }); } } }
public ClosedMessage(OutputWindowViewModel closedWindow) { Window = closedWindow; }