public CurrentCatalogSchemeWindow(CurrentCatalogSchemeViewModel vm) { InitializeComponent(); _vm = vm; DataContext = _vm; }
private void CurrentCatalogSchemeCommand_Executed(object sender, ExecutedRoutedEventArgs e) { var currentCatalogSchemesVM = new CurrentCatalogSchemeViewModel(_vm.DarwinDatabase); var currentCatalogSchemeWindow = new CurrentCatalogSchemeWindow(currentCatalogSchemesVM); currentCatalogSchemeWindow.Owner = this; currentCatalogSchemeWindow.ShowDialog(); }