コード例 #1
0
    /// <summary>
    /// Sets the active filters.
    /// </summary>
    private void SetActiveFilters()
    {
        foreach (ListItem item in chklstFilters.Items)
        {
            if (item.Selected)
            {
                DuplicateProvider.SetActiveFilter(item.Value, item.Enabled);
            }
        }

        ContactDuplicateProvider contactDupProvider = (ContactDuplicateProvider)DuplicateProvider;

        if (rdgOptions.SelectedIndex == 0)
        {
            contactDupProvider.MatchOperator = MatchOperator.And;
        }
        else
        {
            contactDupProvider.MatchOperator = MatchOperator.Or;
        }

        contactDupProvider.SearchAccount   = (chkAccounts.Checked);
        contactDupProvider.SearchContact   = (chkContacts.Checked);
        contactDupProvider.SearchLead      = (chkLeads.Checked);
        contactDupProvider.AdvancedOptions = MatchOptions.GetAdvancedOptions();
    }
コード例 #2
0
 /// <summary>
 /// Sets the active filters.
 /// </summary>
 private void SetActiveFilters()
 {
     foreach (ListItem item in chkListFilters.Items)
     {
         DuplicateProvider.SetActiveFilter(item.Value, item.Selected);
     }
     DuplicateProvider.MatchOperator   = rdgOptions.SelectedIndex == 0 ? MatchOperator.And : MatchOperator.Or;
     DuplicateProvider.SearchAccount   = chkAccounts.Checked;
     DuplicateProvider.SearchContact   = (chkContacts.Checked);
     DuplicateProvider.SearchLead      = (chkLeads.Checked);
     DuplicateProvider.AdvancedOptions = MatchOptions.GetAdvancedOptions();
 }