Ejemplo n.º 1
0
 /// <summary>
 /// ドロー表の新しいインスタンスを生成します。
 /// </summary>
 /// <param name="tournament">大会。</param>
 /// <param name="tennisEvent">種目。</param>
 /// <param name="tournamentFormat">大会形式。</param>
 /// <param name="eligiblePlayersType">出場対象選手の種別。</param>
 /// <param name="entryDetails">エントリー詳細の一覧。</param>
 /// <param name="mainDrawSettings">本戦のドロー設定。</param>
 /// <param name="qualifyingDrawSettings">予選のドロー設定。</param>
 /// <param name="blocks">ブロックの一覧。</param>
 /// <param name="editStatus">編集状態。</param>
 public DrawTable(
     Tournament tournament,
     TennisEvent tennisEvent,
     TournamentFormat tournamentFormat,
     EligiblePlayersType eligiblePlayersType,
     List <EntryDetail> entryDetails,
     DrawSettings mainDrawSettings,
     DrawSettings qualifyingDrawSettings,
     IEnumerable <Block> blocks,
     EditStatus editStatus)
 {
     this.TournamentId           = tournament.Id;
     this.TennisEventId          = tennisEvent.TennisEventId;
     this.TournamentFormat       = tournamentFormat;
     this.EligiblePlayersType    = eligiblePlayersType;
     this.EntryDetails           = new EntryDetails(entryDetails);
     this.MainDrawSettings       = mainDrawSettings;
     this.QualifyingDrawSettings = qualifyingDrawSettings;
     this.Blocks     = new Blocks(blocks);
     this.EditStatus = editStatus;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// ドロー設定を更新します。
 /// </summary>
 /// <param name="participationClassification">出場区分。</param>
 /// <param name="drawSettings">ドロー設定。</param>
 public void UpdateDrawSettings(ParticipationClassification participationClassification, DrawSettings drawSettings)
 {
     if (participationClassification == ParticipationClassification.Main)
     {
         this.MainDrawSettings.UpdateFromObject(drawSettings);
     }
     else
     {
         this.QualifyingDrawSettings.UpdateFromObject(drawSettings);
     }
 }