mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-22 02:21:51 +01:00
Add start time in conversion job
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user