Squashed 'FSI.Lib/' changes from 6aa4846..4a27cd3
4a27cd3 RoboSharp eingefügt 1b2fc1f Erweiterungsmethode für Startparameter einefügt git-subtree-dir: FSI.Lib git-subtree-split: 4a27cd377a1959dc669625473b018e42c31ef147
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace FSI.Lib.Tools.RoboSharp.EventArgObjects
|
||||
{
|
||||
/// <summary>
|
||||
/// EventArgs to declare when a RoboCommand process starts
|
||||
/// </summary>
|
||||
public class RoboQueueCommandStartedEventArgs : EventArgs
|
||||
{
|
||||
private RoboQueueCommandStartedEventArgs() : base() { }
|
||||
internal RoboQueueCommandStartedEventArgs(RoboCommand cmd) : base() { Command = cmd; StartTime = DateTime.Now; }
|
||||
|
||||
/// <summary>
|
||||
/// Command that started.
|
||||
/// </summary>
|
||||
public RoboCommand Command { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns TRUE if the command's <see cref="RoboSharp.Results.ProgressEstimator"/> is available for binding
|
||||
/// </summary>
|
||||
public bool ProgressEstimatorAvailable => Command.IsRunning;
|
||||
|
||||
/// <summary>
|
||||
/// Local time the command started.
|
||||
/// </summary>
|
||||
public DateTime StartTime { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user