using RoboSharp.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RoboSharp.EventArgObjects
{
///
/// EventArgs to declare when a RoboCommand process starts
///
public class RoboQueueCommandStartedEventArgs : EventArgs
{
private RoboQueueCommandStartedEventArgs() : base() { }
internal RoboQueueCommandStartedEventArgs(IRoboCommand cmd) : base() { Command = cmd; StartTime = DateTime.Now; }
///
/// Command that started.
///
public IRoboCommand 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; }
}
}