示例#1
0
        public void Remove(SearchCriterion sc)
        {
            String key = sc.ReplacementKey;

            if (m_Criteria.ContainsKey(key))
            {
                m_Criteria.Remove(key);
            }
        }
示例#2
0
        public void Add(SearchCriterion sc)
        {
            var key = sc.ReplacementKey;

            if (m_Criteria.ContainsKey(key))
                m_Criteria.Remove(key);

            m_Criteria.Add(key, sc);
        }
示例#3
0
        public string GetSelectedValue(SearchCriterion sc)
        {
            if (!(sc is ValuedSearchCriterion))
            {
                return(null);
            }

            SearchCriterion criterion;

            if (!m_Criteria.TryGetValue(sc.ReplacementKey, out criterion) || sc.TypeObjectKey != criterion.TypeObjectKey)
            {
                return(string.Empty);
            }

            ValuedSearchCriterion valuedCriterion = (ValuedSearchCriterion)criterion;

            return(valuedCriterion.Value.ToString());
        }
示例#4
0
        public string GetSelectedValue(SearchCriterion sc)
        {
            if (!(sc is ValuedSearchCriterion))
                return null;

            SearchCriterion criterion;

            if (!m_Criteria.TryGetValue(sc.ReplacementKey, out criterion) || sc.TypeObjectKey != criterion.TypeObjectKey)
                return string.Empty;

            var valuedCriterion = (ValuedSearchCriterion) criterion;
            return valuedCriterion.Value.ToString();
        }
示例#5
0
        public void Remove( SearchCriterion sc )
        {
            String key = sc.ReplacementKey;

            if ( m_Criteria.ContainsKey( key ) )
                m_Criteria.Remove( key );
        }
示例#6
0
 public SearchCriterionEntry(int cliloc, SearchCriterion criterion)
 {
     m_Cliloc    = cliloc;
     m_Criterion = criterion;
 }
 public SearchCriterionEntry( int cliloc, SearchCriterion criterion )
 {
     m_Cliloc = cliloc;
     m_Criterion = criterion;
 }