private async void Start_Click(object sender, RoutedEventArgs e) { var dialog = new HitsoundStudioExportDialog(Settings); var result = await DialogHost.Show(dialog, "RootDialog"); if (!(bool)result) { return; } if (Settings.BaseBeatmap == null || Settings.DefaultSample == null) { MessageBox.Show("Please select a base beatmap and default hitsound first."); return; } BackgroundWorker.RunWorkerAsync(Settings); CanRun = false; }
private async void Start_Click(object sender, RoutedEventArgs e) { var dialog = new HitsoundStudioExportDialog(Settings); var result = await DialogHost.Show(dialog, "RootDialog"); if (!(bool)result) { return; } if (Settings.BaseBeatmap == null || Settings.DefaultSample == null) { MessageBox.Show("Please select a base beatmap and default hitsound first."); return; } // Remove logical focus to trigger LostFocus on any fields that didn't yet update the ViewModel FocusManager.SetFocusedElement(FocusManager.GetFocusScope(this), null); BackgroundWorker.RunWorkerAsync(Settings); CanRun = false; }