private async void Window_Loaded(object sender, RoutedEventArgs e) { await progressViewModel.Run(); canClose = true; Close(); }
private void bgwMain_DoWork(object sender, DoWorkEventArgs e) { vm.Run(bgwMain); }