public void Remove(SearchCriterion sc) { String key = sc.ReplacementKey; if (m_Criteria.ContainsKey(key)) { m_Criteria.Remove(key); } }
public void Add(SearchCriterion sc) { var key = sc.ReplacementKey; if (m_Criteria.ContainsKey(key)) m_Criteria.Remove(key); m_Criteria.Add(key, sc); }
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()); }
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(); }
public void Remove( SearchCriterion sc ) { String key = sc.ReplacementKey; if ( m_Criteria.ContainsKey( key ) ) m_Criteria.Remove( key ); }
public SearchCriterionEntry(int cliloc, SearchCriterion criterion) { m_Cliloc = cliloc; m_Criterion = criterion; }
public SearchCriterionEntry( int cliloc, SearchCriterion criterion ) { m_Cliloc = cliloc; m_Criterion = criterion; }