Exemple #1
0
 //Used on creation of the horse bets.
 public string ToStringInDetail()
 {
     return($"Bet ID: {BetIdNo + Environment.NewLine}" +
            $"Horse: {HorseName}{Environment.NewLine}" +
            $"Race Course: {Racecourse}{Environment.NewLine}" +
            $"Date of Race: ({DateOfRace.ToString("yyyy/MM/dd")}){Environment.NewLine}" +
            $"Race Outcome: {Outcome}{Environment.NewLine}" +
            $"Amount {Outcome}: {AmountWonOrLost:C2}");
 }
Exemple #2
0
 //Used to list the horse bets.
 public override string ToString()
 {
     return($"BET: {BetIdNo} - {HorseName.ToUpper()} - {Racecourse.ToString().ToUpper()} - ({DateOfRace.ToString("yyyy/MM/dd")}) - {Outcome.ToUpper()} - {AmountWonOrLost:C2}{Environment.NewLine}");
 }