using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace FSI.Lib.Tools.RoboSharp.EventArgObjects { /// /// EventArgs to declare when a RoboCommand process starts /// public class RoboQueueCommandStartedEventArgs : EventArgs { private RoboQueueCommandStartedEventArgs() : base() { } internal RoboQueueCommandStartedEventArgs(RoboCommand cmd) : base() { Command = cmd; StartTime = DateTime.Now; } /// /// Command that started. /// public RoboCommand Command { get; } /// /// Returns TRUE if the command's is available for binding /// public bool ProgressEstimatorAvailable => Command.IsRunning; /// /// Local time the command started. /// public DateTime StartTime { get; } } }