/// <summary> /// Handles the Click event of the btnNext control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void btnNext_Click(object sender, RoutedEventArgs e) { if (SaveChanges(true)) { var nextPage = new SelectSaveLocationPage(); this.NavigationService.Navigate(nextPage); } }
/// <summary> /// Handles the Click event of the btnNext control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void btnNext_Click(object sender, RoutedEventArgs e) { var selected = lstLayouts.Items.OfType <RadioButton>().First(a => a.IsChecked == true); if (selected != null) { string fileName = selected.Tag.ToString(); ReportOptions.Current.LayoutFile = fileName; var rockConfig = RockConfig.Load(); rockConfig.LayoutFile = fileName; rockConfig.Save(); SelectSaveLocationPage nextPage = new SelectSaveLocationPage(); this.NavigationService.Navigate(nextPage); } }