tidstagning/Tidstagning/Entry.cs

34 lines
678 B
C#
Raw Normal View History

2020-04-21 15:47:38 +00:00
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;
}
}
}