public ImportWindow(ImportWorkflowViewModel viewModel, Window owner) { _vm = viewModel; DataContext = viewModel; SizeToContent = SizeToContent.WidthAndHeight; Title = $"Import Workflow"; Owner = owner; WindowStartupLocation = WindowStartupLocation.CenterOwner; InitializeComponent(); ShowDialog(); }
public void ShowImportWorkflow() { ImportWorkflowViewModel importVM = new ImportWorkflowViewModel(_context); ImportWindow importWindow = new ImportWindow(importVM, _window); }