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

btnSelectNone_Click() private method

Handles the Click event of the btnSelectNone control.
private btnSelectNone_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 btnSelectNone_Click( object sender, RoutedEventArgs e )
        {
            var list = lstAccounts.Items.OfType<NameIdIsChecked>().ToList();
            list.ForEach( a => a.IsChecked = false );
            lstAccounts.ItemsSource = list;
        }