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();
        }
示例#2
0
        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;
        }