forked from HighEncryption/SyncPro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeMetrics.cs
More file actions
39 lines (29 loc) · 1.11 KB
/
Copy pathChangeMetrics.cs
File metadata and controls
39 lines (29 loc) · 1.11 KB
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
namespace SyncPro.UI.ViewModels
{
using System.Diagnostics.CodeAnalysis;
using SyncPro.UI.Framework;
public class ChangeMetrics : NotifyPropertyChangedSlim
{
public ChangeMetrics(string displayName, bool displayAsByteSize = false)
{
this.DisplayName = displayName;
this.DisplayAsByteSize = displayAsByteSize;
}
public bool DisplayAsByteSize { get; }
public string DisplayName { get; }
public long Added { get; set; }
public long Modified { get; set; }
public long Metadata { get; set; }
public long Removed { get; set; }
public long Unchanged { get; set; }
[SuppressMessage("ReSharper", "ExplicitCallerInfoArgument")]
public void RaisePropertiesChanged()
{
this.RaisePropertyChanged(nameof(this.Added));
this.RaisePropertyChanged(nameof(this.Modified));
this.RaisePropertyChanged(nameof(this.Metadata));
this.RaisePropertyChanged(nameof(this.Removed));
this.RaisePropertyChanged(nameof(this.Unchanged));
}
}
}