예제 #1
0
        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", ", ") + ")");
        }
예제 #2
0
        private void BtnExecute_Click(object sender, EventArgs e)
        {
            string report = new Sportsman(GetSportsmenName()).execute(CommandSelected());

            EdLog.AppendText(report + Environment.NewLine);
        }
예제 #3
0
 public string execute(Sportsman s)
 {
     return(Count + "x" + Cmd.execute(s));
 }
예제 #4
0
 public string execute(Sportsman s)
 {
     return(s.Swim());
 }
예제 #5
0
 public string execute(Sportsman s)
 {
     return(s.Jump());
 }
예제 #6
0
 public string execute(Sportsman s)
 {
     return(s.Run());
 }