Example #1
0
 /// <summary>
 /// Inserts entries in a datatable
 /// </summary>
 /// <param name="dt">table to fill</param>
 public void ToDataTable(dsDisk.DirectoryDataTable dt)
 {
     dt.Rows.Clear();
     foreach (DirectoryEntry de in dir)
     {
         dsDisk.DirectoryRow row = de.GetDataRow(dt);
         dt.AddDirectoryRow(row);
     }
 }
Example #2
0
 /// <summary>
 /// Return entry as datarow
 /// </summary>
 /// <param name="dt">Datatable for row model</param>
 /// <returns></returns>
 public dsDisk.DirectoryRow GetDataRow(dsDisk.DirectoryDataTable dt)
 {
     dsDisk.DirectoryRow row = dt.NewDirectoryRow();
     row.Filename = Filename;
     row.FileType = Type.ToString();
     row.FileSize = (Int16)FileSize;
     row.Locked   = Locked;
     row.Closed   = Closed;
     row.Index    = Index;
     return(row);
 }