Now it is possible to finnish a tournament with scores and mails

This commit is contained in:
2020-04-20 23:44:09 +02:00
parent 5d0d891024
commit ac1d5371f2
9 changed files with 144 additions and 7 deletions

View File

@ -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());
}
}

View File

@ -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;

View File

@ -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;