Sicherung gnaz neu

This commit is contained in:
Maier Stephan SI
2023-02-15 00:55:50 +01:00
parent 56c25672f9
commit f3f89b94f5
1348 changed files with 113234 additions and 98368 deletions

View File

@@ -1,49 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RoboSharp.EventArgObjects
{
/// <summary>
/// Provide a base class that includes a StartTime, EndTime and will calculate the TimeSpan in between
/// </summary>
public abstract class TimeSpanEventArgs : EventArgs, RoboSharp.Interfaces.ITimeSpan
{
private TimeSpanEventArgs() : base() { }
/// <summary>
/// Create New Args
/// </summary>
/// <param name="startTime"></param>
/// <param name="endTime"></param>
public TimeSpanEventArgs(DateTime startTime, DateTime endTime) : base()
{
StartTime = startTime;
EndTime = endTime;
TimeSpan = EndTime.Subtract(StartTime);
}
internal TimeSpanEventArgs(DateTime startTime, DateTime endTime, TimeSpan tSpan) : base()
{
StartTime = startTime;
EndTime = endTime;
TimeSpan = tSpan;
}
/// <summary>
/// Local time the command started.
/// </summary>
public virtual DateTime StartTime { get; }
/// <summary>
/// Local time the command stopped.
/// </summary>
public virtual DateTime EndTime { get; }
/// <summary>
/// Length of time the process took to run
/// </summary>
public virtual TimeSpan TimeSpan { get; }
}
}