protected TrainingEntry(TimeSpan duration, Common.Sport sport, Common.EntryType entryType) : base(entryType) { if (entryType != Common.EntryType.Competition) { throw new ArgumentException("constructor for competitions"); } Sport = sport; Duration = duration; }
protected Entry(Common.EntryType entryType) { EntryName = entryType.ToString(); }