コード例 #1
0
ファイル: FindForm.cs プロジェクト: jdrudolph/compbio-base
        private bool MatchRow(int rowInd, IEnumerable <int> columnIndices, bool matchCase, bool matchWholeWord,
                              string searchString, out int[] matchingCols)
        {
            List <int> matchingCols1 = new List <int>();

            foreach (int columnIndex in columnIndices)
            {
                object e = tableModel.GetEntry(rowInd, columnIndex);
                if (e == null)
                {
                    continue;
                }
                string val = e.ToString();
                if (!matchCase)
                {
                    val = val.ToLower();
                }
                if (MatchCell(val, matchWholeWord, searchString))
                {
                    matchingCols1.Add(columnIndex);
                }
            }
            matchingCols = matchingCols1.Count > 0 ? matchingCols1.ToArray() : null;
            return(matchingCols1.Count > 0);
        }
コード例 #2
0
 public object GetEntry(int row, int column)
 {
     return(baseModel.GetEntry(rows[row], columns == null ? column : columns[column]));
 }
コード例 #3
0
 public object GetEntry(int row, int column)
 {
     return(baseModel.GetEntry(rows[row], columns?[column] ?? column));
 }