Every form is wired up and the system works in some meaning

This commit is contained in:
2020-04-13 23:27:51 +02:00
parent ac1fa4cfaa
commit 8758ec170d
5 changed files with 120 additions and 4 deletions

View File

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