public StructureWindow(StructureDeletionViewModel viewModel, Window owner) { _vm = viewModel; DataContext = viewModel; SizeToContent = SizeToContent.WidthAndHeight; Title = $"Structure Deletion"; Owner = owner; WindowStartupLocation = WindowStartupLocation.CenterOwner; InitializeComponent(); ShowDialog(); }
public void ShowStructureDeletion() { StructureDeletionViewModel structDelVM = new StructureDeletionViewModel(_context); StructureWindow structDelWindow = new StructureWindow(structDelVM, _window); }