Rock.Apps.StatementGenerator.SelectAccountsPage.btnSelectAll_Click C# (CSharp) Method

btnSelectAll_Click() private method

Handles the Click event of the btnSelectAll control.
private btnSelectAll_Click ( object sender, RoutedEventArgs e ) : void
sender object The source of the event.
e System.Windows.RoutedEventArgs The instance containing the event data.
return void
        private void btnSelectAll_Click( object sender, RoutedEventArgs e )
        {
            var list = lstAccounts.Items.OfType<NameIdIsChecked>().ToList();
            list.ForEach( a => a.IsChecked = true );
            lstAccounts.ItemsSource = list;
        }