Now it is possible to finnish a tournament with scores and mails
This commit is contained in:
@ -19,7 +19,7 @@ namespace TrackerUI
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
// Initialize the database connections
|
||||
GlobalConfig.InitializeConnections(DatabaseType.TextFile);
|
||||
GlobalConfig.InitializeConnections(DatabaseType.Sql);
|
||||
Application.Run(new TournamentDashboardForm());
|
||||
}
|
||||
}
|
||||
|
||||
2
TrackerUI/TournamentViewerForm.Designer.cs
generated
2
TrackerUI/TournamentViewerForm.Designer.cs
generated
@ -188,7 +188,7 @@
|
||||
this.scoreButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.scoreButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.scoreButton.ForeColor = System.Drawing.Color.DodgerBlue;
|
||||
this.scoreButton.Location = new System.Drawing.Point(616, 286);
|
||||
this.scoreButton.Location = new System.Drawing.Point(613, 287);
|
||||
this.scoreButton.Name = "scoreButton";
|
||||
this.scoreButton.Size = new System.Drawing.Size(125, 58);
|
||||
this.scoreButton.TabIndex = 13;
|
||||
|
||||
@ -23,12 +23,19 @@ namespace TrackerUI
|
||||
public TournamentViewerForm(TournamentModel tournamentModel)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
tournament = tournamentModel;
|
||||
tournament.OnTournamentComplete += Tournament_OnTournamentComplete;
|
||||
WireUpLists();
|
||||
LoadFormData();
|
||||
LoadRounds();
|
||||
}
|
||||
|
||||
private void Tournament_OnTournamentComplete(object sender, DateTime e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void LoadFormData()
|
||||
{
|
||||
tournamentName.Text = tournament.TournamentName;
|
||||
|
||||
Reference in New Issue
Block a user