Assign numbers to ProgressToken.State

Update type docs
This commit is contained in:
2024-10-20 20:58:59 +02:00
parent 93696fbac1
commit 9d47445339
2 changed files with 17 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ public class ProgressToken
public DateTime executionStarted { get; private set; }
public TimeSpan timeRemaining => GetTimeRemaining();
public enum State { Running, Complete, Standby, Cancelled, Waiting }
public enum State : byte { Running = 0, Complete = 1, Standby = 2, Cancelled = 3, Waiting = 4 }
public State state { get; private set; }
public ProgressToken(int increments)