예제 #1
0
        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 });
                }
            }
        }
예제 #2
0
 public ClosedMessage(OutputWindowViewModel closedWindow)
 {
     Window = closedWindow;
 }