\r
using HandBrake.ApplicationServices.Model;\r
\r
+ using HandBrakeWPF.Utilities;\r
+\r
using EncodeTask = HandBrakeWPF.Services.Encode.Model.EncodeTask;\r
\r
/// <summary>\r
/// </summary>\r
public class QueueTask : PropertyChangedBase\r
{\r
- private static int id = 0;\r
+ private static int id;\r
private QueueItemStatus status;\r
\r
#region Properties\r
{\r
this.Status = QueueItemStatus.Waiting;\r
id = id + 1;\r
- this.Id = id;\r
+ this.Id = string.Format("{0}.{1}", GeneralUtilities.ProcessId, id);\r
}\r
\r
/// <summary>\r
this.ScannedSourcePath = scannedSourcePath;\r
\r
id = id + 1;\r
- this.Id = id;\r
+ this.Id = string.Format("{0}.{1}", GeneralUtilities.ProcessId, id);\r
}\r
\r
- public int Id { get; private set; }\r
+ public string Id { get; }\r
\r
/// <summary>\r
/// Gets or sets ScannedSource.\r
\r
public override int GetHashCode()\r
{\r
- return this.Id;\r
+ return this.Id.GetHashCode();\r
}\r
}\r
}
\ No newline at end of file