public TestForm() { InitializeComponent(); this.ScoreJoueur1 = new Score(); this.ScoreJoueur2 = new Score(); this.Jeu = new Jeu(); this.Set = new Set(); this.Match = new Match(); this.OnPointEnded += new PointEndedEventHandler(this.TestForm_OnPointEnded); this.OnGameEnded += new GameEndedEventHandler(this.TestForm_OnGameEnded); this.OnSetEnded += new SetEndedEventHandler(this.TestForm_OnSetEnded); this.onMatchEnded += new MatchEndedEventHandler(this.TestForm_onMatchEnded); this.scoreJoueur1ToolBox.Text = this.ScoreJoueur1.Point.ToString(); this.jeuJoueur1ToolBox.Text = this.Jeu.Score1.Point.ToString(); this.setJoueur1ToolBox.Text = this.Set.Score1.Point.ToString(); this.matchJoueur1ToolBox.Text = this.Match.Score1.Point.ToString(); this.scoreJoueur2ToolBox.Text = this.ScoreJoueur2.Point.ToString(); this.jeuJoueur2ToolBox.Text = this.Jeu.Score2.Point.ToString(); this.setJoueur2ToolBox.Text = this.Set.Score2.Point.ToString(); this.matchJoueur2ToolBox.Text = this.Match.Score2.Point.ToString(); }
public MatchEndedEventArgs(Match match) { this.Match = new Match(match); }
public Match(Match match) { this.ListeSet = new LinkedList<Set>(match.ListeSet); this.Score1 = new Score(match.Score1); this.Score2 = new Score(match.Score2); }