The ViewModel
(Created page with "$( function () { private Game CreateSomeTestData() { // Game types var gtboys15 = new GameType(_es) { Name = "15 years, Boys" }; var gtboys16 = new GameType(_es)...") |
No edit summary |
||
Line 1: | Line 1: | ||
private Game CreateSomeTestData() | private Game CreateSomeTestData() | ||
{ | { | ||
Line 39: | Line 39: | ||
ScheduledDate = DateTime.Now | ScheduledDate = DateTime.Now | ||
}; | }; | ||
Revision as of 15:01, 24 October 2018
private Game CreateSomeTestData() {
// Game types var gtboys15 = new GameType(_es) { Name = "15 years, Boys" }; var gtboys16 = new GameType(_es) { Name = "16 years, Boys" }; var gtgirls15 = new GameType(_es) { Name = "15 years, Girls" }; // team types var ttb15=new TeamType(_es) { Name = "Boys 15 years" }; var ttb16 = new TeamType(_es) { Name = "Boys 16 years" }; var ttg15 = new TeamType(_es) { Name = "Girls 15 years" }; // Valid team-game combinations gtgirls15.TeamTypes.Add(ttg15); gtboys15.TeamTypes.Add(ttb15); gtboys15.TeamTypes.Add(ttg15); // girls can play in boys 15 year gtboys16.TeamTypes.Add(ttb15); // 15 year boys can enter 16 year games gtboys16.TeamTypes.Add(ttb16); gtboys16.TeamTypes.Add(ttg15); // girls can play in boys 16 year new Team(_es) { Name = "Brynäs",Image=GetImage(imagebrynäs), TeamType=ttb15 }; new Team(_es) { Name = "Brynäs", Image = GetImage(imagebrynäs), TeamType = ttb16 }; new Team(_es) { Name = "Brynäs", Image = GetImage(imagebrynäs), TeamType = ttg15 }; new Team(_es) { Name = "Luleå", Image = GetImage(imageluleå), TeamType = ttb15 }; new Team(_es) { Name = "Luleå", Image = GetImage(imageluleå), TeamType = ttb16 }; new Team(_es) { Name = "Luleå", Image = GetImage(imageluleå), TeamType = ttg15 }; new Team(_es) { Name = "Djurgården", Image = GetImage(imagedjurgården), TeamType = ttb15 }; new Team(_es) { Name = "Djurgården", Image = GetImage(imagedjurgården), TeamType = ttb16 }; new Team(_es) { Name = "Djurgården", Image = GetImage(imagedjurgården), TeamType = ttg15 }; return new Game(_es) { ScheduledDate = DateTime.Now };
This page was edited more than 11 months ago on 02/13/2024. What links here