-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResetManager.cs
More file actions
41 lines (35 loc) · 1017 Bytes
/
ResetManager.cs
File metadata and controls
41 lines (35 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using Serilog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DirectoryGuardian
{
public class ResetManager
{
/// we will store all recorded changes
/// we will then be able to undo them after sorting has happened
/// we will also provide a UI to show these changes
/// and ability to jsut restore one file, a category of files, or all files
///
private readonly DirGuard _dirguard;
private readonly ILogger _logger;
public ResetManager(DirGuard dirGuard, ILogger logger)
{
_dirguard = dirGuard;
_logger = logger;
}
List<Record> _changes = new List<Record>();
public void RecordChange(Record record)
{
_changes.Add(record);
}
}
public class Record()
{
public string OGpath;
public string NewPath;
public DateTime TimeOfChange;
}
}