private void ButtonSave_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(this.LocalFileDownloadDirectory)) { YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.WebServiceAccount.LocalFileDownloadDirectory = LocalFileDownloadDirectory; YellowstonePathology.YpiConnect.Contract.Identity.ApplicationIdentity.Instance.Save(); FileDownloadSettingsSavedPage fileDownloadSettingsSavedPage = new FileDownloadSettingsSavedPage(); ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(fileDownloadSettingsSavedPage); } else { System.Windows.MessageBox.Show("Enter a valid directory for the File Download Path.", "Path not valid"); } }
private void FileDownloadSettingsPage_DownloadSettingsSaved(object sender, EventArgs e) { FileDownloadSettingsSavedPage fileDownloadSettingsSavedPage = new FileDownloadSettingsSavedPage(); ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(fileDownloadSettingsSavedPage); }