private static string SwimTypeCode(Records.Common.Model.SwimType type) { switch (type) { case Model.SwimType.None: return("R"); case Model.SwimType.Butterfly: return("S"); case Model.SwimType.Backstroke: return("R"); case Model.SwimType.Breaststroke: return("B"); case Model.SwimType.Freestyle: return("F"); case Model.SwimType.Medley: return("L"); } return(""); }
public Discipline(int baselength, SwimType swimType) { this.Factor = 1; this.BaseLength = baselength; this.SwimType = swimType; }