Interaction logic for SelectDateRangePage.xaml
Inheritance: System.Windows.Controls.Page
 /// <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 SelectDateRangePage();
         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 accountIds = lstAccounts.Items.OfType<NameIdIsChecked>().Where( a => a.IsChecked == true ).Select( s => s.Id ).ToList();
     if ( accountIds.Count > 0 )
     {
         ReportOptions.Current.AccountIds = accountIds;
         SelectDateRangePage nextPage = new SelectDateRangePage();
         this.NavigationService.Navigate( nextPage );
     }
     else
     {
         lblWarning.Visibility = Visibility.Visible;
     }
 }
Exemplo n.º 3
0
        /// <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 accountIds = lstAccounts.Items.OfType <NameIdIsChecked>().Where(a => a.IsChecked == true).Select(s => s.Id).ToList();

            if (accountIds.Count > 0)
            {
                ReportOptions.Current.AccountIds = accountIds;
                SelectDateRangePage nextPage = new SelectDateRangePage();
                this.NavigationService.Navigate(nextPage);
            }
            else
            {
                lblWarning.Visibility = Visibility.Visible;
            }
        }