//////////////////////////////////////////////////////////////////////////// //--------------------------------- REVISIONS ------------------------------ // Date Name Tracking # Description // --------- ------------------- ------------- ---------------------- // 21JUN2009 James Shen Initial Creation //////////////////////////////////////////////////////////////////////////// /** * constructor. * @param fieldName the name of columm in the table. If no match, the first * column is selected. * @param matchString string to be matched. */ public void AddCondition(string fieldName, string matchString) { int fieldIndex = 0; if (Fields != null) { for (int i = 0; i < Fields.Length; i++) { if (Fields[i].GetName().ToLower().Equals(fieldName.ToLower())) { fieldIndex = i; break; } } } FindCondition condition = new FindCondition(fieldIndex, matchString); _findConditions.Add(condition); }
//////////////////////////////////////////////////////////////////////////// //--------------------------------- REVISIONS ------------------------------ // Date Name Tracking # Description // --------- ------------------- ------------- ---------------------- // 21JUN2009 James Shen Initial Creation //////////////////////////////////////////////////////////////////////////// /** * Add one condition. * @param fieldIndex the index of column(field) in the table. * @param matchString sting to be matched (start with). */ public void AddCondition(int fieldIndex, string matchString) { FindCondition condition = new FindCondition(fieldIndex, matchString); _findConditions.Add(condition); }