1
0
mirror of https://github.com/chylex/Backup-Essentials.git synced 2025-06-01 12:34:07 +02:00

Added an empty history entry class

This commit is contained in:
chylex 2015-04-13 23:17:11 +02:00
parent b02ab9b417
commit 91bcaaf917
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BackupEssentials.Backup.History{
class HistoryEntry{
}
}

View File

@ -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" />

View File

@ -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;