private void LoadFromVSTSDrop(object sender, RoutedEventArgs e) { //TODO var runTestsPage = new RunTestsPage(); NavigationService.Navigate(runTestsPage); }
private async void LoadFromFileHandler(object sender, RoutedEventArgs e) { OpenFileDialog dialog = new OpenFileDialog { Filter = "Run settings files (*.runsettings)|*.runsettings|All files (*.*)|*.*" }; if (dialog.ShowDialog() == true) { var filename = dialog.FileName; var success = await ProcessRunSettingFromFileHandler(filename); if (success) { var runTestsPage = new RunTestsPage(); NavigationService.Navigate(runTestsPage); return; } } //reset the page to try again var newLoadSettingsPage = new LoadRunSettingsPage($"Load run settings failed. Try again."); NavigationService.Navigate(newLoadSettingsPage); }