blob: 9c8d24d05b8a2a8d37ed6cdf92158523e7cfccfc (
plain)
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
42
43
44
45
46
47
48
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;
namespace Tango.FSE.Common.HotFolder
{
public class HotFolderItem : ExtendedObject
{
public DateTime DateTime { get; set; }
public String FilePath { get; set; }
public String Name { get; set; }
private HotFolderItemStatus _status;
public HotFolderItemStatus Status
{
get { return _status; }
set
{
_status = value;
RaisePropertyChangedAuto();
Message = Status.ToDescription();
}
}
private String _message;
public String Message
{
get { return _message; }
set { _message = value; RaisePropertyChangedAuto(); }
}
public HotFolderItem()
{
Status = HotFolderItemStatus.Pending;
DateTime = DateTime.Now;
}
public HotFolderItem(String file) : this()
{
FilePath = file;
Name = Path.GetFileName(file);
}
}
}
|