private void OpenBackupManager(object sender, RoutedEventArgs e) { BackupManagerViewModel model = new BackupManagerViewModel(); BackupManager manager = new BackupManager { DataContext = model, Owner = this }; model.Window = manager; manager.ShowDialog(); }
public BackupManager(string gameName) { DataContext = _viewModel = new BackupManagerViewModel(gameName); InitializeComponent(); }