Every form is wired up and the system works in some meaning
This commit is contained in:
@ -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