public CheckScore(TeamMatchStorage teamMatch, TeamDataStorage getData) { InitializeComponent(); teamData = getData; Title = "Field " + teamData.Field.ToString() + " Reviewing..."; currentTeamMatch = teamMatch; }
private void NextPage(object sender, EventArgs e) { var pushteamdata = new TeamDataStorage(); pushteamdata.Field = FieldNum; pushteamdata.Rerun = Rerun; pushteamdata.TeamID = TeamIDs[SelectedIndex]; pushteamdata.TeamNumber = TeamNumbers[SelectedIndex]; pushteamdata.Test = Tests[SelectedIndex]; pushteamdata.Valid = Validates[SelectedIndex]; pushteamdata.Round = Round; Navigation.PushAsync(new CheckSelectionPage(pushteamdata)); try { var existingPages = Navigation.NavigationStack.ToList(); foreach (var page in existingPages) { Navigation.RemovePage(page); } } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }
public NotReadyPage(TeamDataStorage getData) { teamData = getData; FieldLoaded = getData.Field; InitializeComponent(); SetUpSignalR(); }
public ReadyPage(TeamDataStorage getData) { teamData = getData; pageLoad = DateTime.Now; FieldLoaded = getData.Field; InitializeComponent(); SetUpSignalR(); }
public ActionResult Index() { TeamPlayerStorage teamPlayerStorage = new TeamPlayerStorage(); var model = new MainPageViewModel(); model.TeamPlayer = teamPlayerStorage.GetAllPlayers(1); TeamDataStorage teamDataStorage = new TeamDataStorage(); model.teamData = teamDataStorage.GetTeamData(1); return(View(model)); }
public MainPage(TeamDataStorage getData) { teamData = getData; ReviewingScores = false; ConnectionTested = false; CurrentField = getData.Field; SetUpSignalR(); InitializeComponent(); //Array.Clear(BottleScores, 0, BottleScores.Length); //Array.Clear(GeneralPoints, 0, GeneralPoints.Length); //Array.Clear(BallPoints, 0, BallPoints.Length); TotalScore = 0; Data = ""; Title = "Field " + CurrentField.ToString() + " Scoring (2:00)"; }
public CheckSelectionPage(TeamDataStorage getData) { teamData = getData; FieldLoaded = getData.Field; InitializeComponent(); Title = "Field " + teamData.Field.ToString() + ": " + teamData.TeamNumber; round.Text = "Round " + teamData.Round.ToString(); field.Text = "Field " + teamData.Field.ToString(); if (teamData.Rerun) { rerun.IsVisible = true; } if (teamData.Test) { test.IsVisible = true; } if (!teamData.Valid) { valid.IsVisible = true; } }
public ActionResult Index() { PlayerStorage playerStorage = new PlayerStorage(); var model = new MainPageViewModel(); //model.Players = playerStorage.GetPlayersByAgeinterval(20, 25); TeamDataStorage teamDataStorage = new TeamDataStorage(); Player player = new Player { Name = "Рафаэль Варан", Age = 21, Atack = 35, Defence = 80, Position = "защитник", Price = 20000 }; //playerStorage.AddPlayer(player); TeamData teamData = new TeamData { Budget = 100000, Rate = 10, PlayersNumber = 11, MatchesPlayed = 20, MatchesWin = 10, MatchesDraw = 7, MatchesLose = 3 }; teamDataStorage.AddTeamData(teamData); //model.teamData = teamDataStorage.GetTeamData(0); return(View(model)); }
public TeamDataLogic() { teamDataStorage = new TeamDataStorage(); }