31 lines
606 B
C#
31 lines
606 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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|