34 lines
678 B
C#
34 lines
678 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|