mirror of
https://github.com/wagesj45/mdfinder.git
synced 2025-09-09 03:20:38 -05:00
Periodic Checkin
Got the application scanning and displaying results.
This commit is contained in:
parent
c0afde943e
commit
f81e4f13da
7 changed files with 130 additions and 10 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using LiteDB;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
|
@ -9,7 +10,7 @@ using System.Threading.Tasks;
|
|||
namespace mdfinder
|
||||
{
|
||||
/// <summary> A database helper class. </summary>
|
||||
public class DBHelper
|
||||
public class DBHelper : PropertyChangedAlerter
|
||||
{
|
||||
#region Members
|
||||
|
||||
|
|
@ -34,6 +35,15 @@ namespace mdfinder
|
|||
}
|
||||
}
|
||||
|
||||
public IEnumerable<FileRecord> ASDF
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.FileRecords.FindAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
|
@ -63,6 +73,7 @@ namespace mdfinder
|
|||
public void InsertFileRecord(string path, long size, string hash, string hashProvider)
|
||||
{
|
||||
this.FileRecords.Insert(new FileRecord() { Path = path, Size = size, Hash = hash, HashProvider = hashProvider });
|
||||
OnPropertyChanged("ASDF");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue