public string execute(Sportsman s) { StringBuilder sb = new StringBuilder(); foreach (SportsmanCommand cmd in List) { sb.Append(cmd.execute(s)).Append('\t'); } return("(" + sb.ToString().Trim().Replace("\t", ", ") + ")"); }
private void BtnExecute_Click(object sender, EventArgs e) { string report = new Sportsman(GetSportsmenName()).execute(CommandSelected()); EdLog.AppendText(report + Environment.NewLine); }
public string execute(Sportsman s) { return(Count + "x" + Cmd.execute(s)); }
public string execute(Sportsman s) { return(s.Swim()); }
public string execute(Sportsman s) { return(s.Jump()); }
public string execute(Sportsman s) { return(s.Run()); }