Ejemplo n.º 1
0
 /// <summary>
 /// Removes a record from the database
 /// </summary>
 /// <param name="record">the record you want to remove</param>
 public static void RemoveRecord(DownloadHistory historyRecord)
 {
     if (historyRecord != null && DLHistory.GetHistoryEntryById(historyRecord.Id) != null)
     {
         DLHistory.RemoveRecord(historyRecord);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the history record from the database with the given id
 /// </summary>
 /// <param name="id">the unique id</param>
 /// <returns></returns>
 public static DownloadHistory GetHistoryEntryById(long id)
 {
     return(DLHistory.GetHistoryEntryById(id));
 }