diff --git a/BackupEssentials/Backup/History/HistoryEntry.cs b/BackupEssentials/Backup/History/HistoryEntry.cs new file mode 100644 index 0000000..721d2e8 --- /dev/null +++ b/BackupEssentials/Backup/History/HistoryEntry.cs @@ -0,0 +1,9 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace BackupEssentials.Backup.History{ + class HistoryEntry{ + } +} diff --git a/BackupEssentials/BackupEssentials.csproj b/BackupEssentials/BackupEssentials.csproj index 10d2c57..986ef20 100644 --- a/BackupEssentials/BackupEssentials.csproj +++ b/BackupEssentials/BackupEssentials.csproj @@ -80,6 +80,7 @@ <Compile Include="Backup\BackupReport.cs" /> <Compile Include="Backup\BackupRunInfo.cs" /> <Compile Include="Backup\BackupRunner.cs" /> + <Compile Include="Backup\History\HistoryEntry.cs" /> <Compile Include="Data\DataStorage.cs" /> <Compile Include="Data\ExplorerIntegration.cs" /> <Compile Include="Backup\IO\IOAction.cs" /> diff --git a/BackupEssentials/Data/DataStorage.cs b/BackupEssentials/Data/DataStorage.cs index 715cb09..663c66a 100644 --- a/BackupEssentials/Data/DataStorage.cs +++ b/BackupEssentials/Data/DataStorage.cs @@ -10,7 +10,7 @@ using System.Linq; namespace BackupEssentials.Backup.Data{ class DataStorage{ public enum Type{ - Locations + Locations, History } private static readonly ScheduledUpdate SaveTimer = ScheduledUpdate.Forever(10,() => { @@ -21,11 +21,14 @@ namespace BackupEssentials.Backup.Data{ public static readonly ObservableCollection<BackupLocation> BackupLocationList = new ObservableCollection<BackupLocation>(new List<BackupLocation>(8)); public static readonly ChangeTracker BackupLocationListTracker = new ChangeTracker(); + public static readonly ObservableCollection<HistoryEntry> HistoryEntryList = new ObservableCollection<HistoryEntry>(new List<HistoryEntry>(32)); + public static readonly ChangeTracker HistoryEntryListTracker = new ChangeTracker(); static DataStorage(){ SaveTimer.Start(); BackupLocationList.CollectionChanged += Tracker(BackupLocationListTracker); + HistoryEntryList.CollectionChanged += Tracker(HistoryEntryListTracker); foreach(Type type in Enum.GetValues(typeof(Type))){ LoadedData[type] = false;