tidstagning/Tidstagning/Entry.cs
Jens True 8d10da3cc6
All checks were successful
continuous-integration/drone/push Build is passing
Code formatting. Remove traces of static analysis in drone build
2021-07-03 23:12:20 +02:00

31 lines
598 B
C#

using System;
namespace Tidstagning
{
class Entry
{
public string Name { get; set; }
public string SailNumber { get; set; }
public DateTime Completed_Time { get; set; }
public Entry(string name, string number)
{
this.Name = name;
this.SailNumber = number;
this.Completed_Time = DateTime.Today;
}
public void Complete()
{
this.Completed_Time = DateTime.Now;
}
public void DNF()
{
this.Completed_Time = DateTime.Now;
}
}
}