Beispiel #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);
        }
Beispiel #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();
                }
            }
        }
Beispiel #3
0
 private DataRow[] CreateIndex_2g(DirData.tblFilesDataTable ds)
 {
     return(ds.Select("", "PathID,fSize"));
 }