Add start time in conversion job

This commit is contained in:
Adrien Allard committed 2018-09-25 19:28:31 +02:00
1 parent ab9c7eb8f3
commit 94f1d0742d
1 file changed
+16
@@ -13,6 +13,7 @@ namespace FileConverter.ConversionJobs
public class ConversionJob : INotifyPropertyChanged
{
private float progress = 0f;
private DateTime startTime;
private ConversionState state = ConversionState.Unknown;
private string errorMessage = string.Empty;
private string userState = string.Empty;
@@ -136,6 +137,20 @@ namespace FileConverter.ConversionJobs
}
}
public System.DateTime StartTime
{
get
{
return this.startTime;
}
protected set
{
this.startTime = value;
this.NotifyPropertyChanged();
}
}
public string ErrorMessage
{
get
@@ -333,6 +348,7 @@ namespace FileConverter.ConversionJobs
Debug.Log("Convert file {0} to {1}.", this.InputFilePath, this.OutputFilePath);
this.StartTime = DateTime.Now;
this.State = ConversionState.InProgress;
try