Пример #1
0
        private int do_loop(DirData.tblFilesDataTable tbl)
        {
            int result = 0;

            for (int n = 0, eend = tbl.Rows.Count; n < eend; ++n)
            {
                if (tbl[n].IsPathIDNull())
                {
                    ++result;
                }
            }
            return(result);
        }
Пример #2
0
        private void dsDatasetModify_2(DirData.tblFilesDataTable ds, String descr)
        {
            for (int n = 0, eend = ds.Rows.Count; n < eend; ++n)
            {
                DirData.tblFilesRow row = ds[n];

                row.BeginEdit();
                try
                {
                    row.FileID      = n;
                    row.PathID      = n;
                    row.Description = descr;
                }
                finally
                {
                    row.EndEdit();
                }
            }
        }
Пример #3
0
 private DataRow[] CreateIndex_2g(DirData.tblFilesDataTable ds)
 {
     return(ds.Select("", "PathID,fSize"));
 }