private void ReturnToMatchingDialogButton_Click(object sender, RoutedEventArgs e) { var matchingWindowVM = new MatchingWindowViewModel(_vm.DatabaseFin, _vm.Database); var matchingWindow = new MatchingWindow(matchingWindowVM); this.Close(); matchingWindow.Show(); }
public MatchingWindow(MatchingWindowViewModel vm) { InitializeComponent(); _matchingWorker.WorkerReportsProgress = true; _matchingWorker.WorkerSupportsCancellation = true; //_matchingWorker.ProgressChanged += ProgressChanged; _matchingWorker.DoWork += MatchWork; _matchingWorker.RunWorkerCompleted += MatchWorker_RunWorkerCompleted; _vm = vm; this.DataContext = _vm; }