Exemple #1
0
        private int[] FindAll(bool matchCase, bool matchWholeWord, string searchString, IEnumerable <int> colInds,
                              out int[][] matchingCols)
        {
            List <int>   result        = new List <int>();
            List <int[]> matchingCols2 = new List <int[]>();

            for (int i = 0; i < tableModel.RowCount; i++)
            {
                int   modelInd = tableViewWf.GetModelIndex(i);
                int[] matchingCols1;
                if (MatchRow(modelInd, colInds, matchCase, matchWholeWord, searchString, out matchingCols1))
                {
                    result.Add(i);
                    matchingCols2.Add(matchingCols1);
                }
            }
            matchingCols = matchingCols2.ToArray();
            return(result.ToArray());
        }