public void OpenPreviewWindow()\r
{\r
Window window = Application.Current.Windows.Cast<Window>().FirstOrDefault(x => x.GetType() == typeof(PreviewView));\r
+ IPreviewViewModel viewModel = IoC.Get<IPreviewViewModel>();\r
\r
if (window != null)\r
{\r
+ viewModel.Task = this.CurrentTask;\r
window.Activate();\r
}\r
else\r
{\r
- IPreviewViewModel viewModel = IoC.Get<IPreviewViewModel>();\r
+ viewModel.Task = this.CurrentTask;\r
this.WindowManager.ShowWindow(viewModel);\r
}\r
}\r