public void ChangeImportOption() { ImportOptionWindowVM vm = new ImportOptionWindowVM(importOption); ImportOptionWindow window = new ImportOptionWindow(vm); window.Owner = Window; if (window.ShowDialog() == true) { importOption.UpdateValidMenuElems(vm.CheckMenuElems); } }
public ImportOptionWindow(ImportOptionWindowVM viewModel) { InitializeComponent(); this.viewModel = viewModel; DataContext = viewModel; }