mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2025-12-03 11:38:24 +01:00
Added an empty history entry class
This commit is contained in:
9
BackupEssentials/Backup/History/HistoryEntry.cs
Normal file
9
BackupEssentials/Backup/History/HistoryEntry.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BackupEssentials.Backup.History{
|
||||
class HistoryEntry{
|
||||
}
|
||||
}
|
||||
@@ -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" />
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user