Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 protected Entry(Common.EntryType entryType)
 {
     EntryName = entryType.ToString();
 }