Every form is wired up and the system works in some meaning
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="filePath" value="D:\data\TournamentTracker"/>
|
||||
<!--<add key="filePath" value="D:\data\TournamentTracker"/>-->
|
||||
<add key="filePath" value="C:\AppData\TournamentTracker"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="Tournaments" connectionString="Server=TOMMYASUS\SQLEXPR2017;Database=Tournaments;Trusted_Connection=True;" providerName="System.Data.SqlClient"/>
|
||||
|
||||
@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TrackerLibrary;
|
||||
using TrackerLibrary.Models;
|
||||
|
||||
namespace TrackerUI
|
||||
@ -214,7 +215,28 @@ namespace TrackerUI
|
||||
MessageBox.Show("I dont handle tie games.");
|
||||
}
|
||||
|
||||
foreach (List<MatchupModel> round in tournament.Rounds)
|
||||
{
|
||||
foreach (MatchupModel rm in round)
|
||||
{
|
||||
foreach (MatchupEntryModel me in rm.Entries)
|
||||
{
|
||||
if (me.ParentMatchup != null)
|
||||
{
|
||||
if (me.ParentMatchup.Id == m.Id)
|
||||
{
|
||||
me.TeamCompeting = m.Winner;
|
||||
GlobalConfig.Connection.UpdateMatchup(rm);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LoadMatchups((int)roundDropDown.SelectedItem);
|
||||
|
||||
GlobalConfig.Connection.UpdateMatchup(m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user