public static void Show(string message) { Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => { LoadingDialogViewModel loadingDialogViewModel = new LoadingDialogViewModel(); loadingDialogViewModel.DisplayName = message; _view = new LoadingView(loadingDialogViewModel); _view.ShowDialog(); })); }
private void checkFiles() { LoadingView load = new LoadingView(); load.ShowDialog(); }