Inheritance: StatEvent
Exemplo n.º 1
0
        public LineupEvent CreateLineupEvent()
        {
            Time        startTime;
            LineupEvent lineup;

            if (Periods.Count == 0)
            {
                startTime = new Time(0);
            }
            else
            {
                startTime = Periods [0].PeriodNode.Start;
            }

            lineup = new LineupEvent {
                Name                = Catalog.GetString("Lineup"),
                EventType           = SubstitutionsEventType,
                HomeStartingPlayers = LocalTeamTemplate.StartingPlayersList,
                HomeBenchPlayers    = LocalTeamTemplate.BenchPlayersList,
                AwayStartingPlayers = VisitorTeamTemplate.StartingPlayersList,
                AwayBenchPlayers    = VisitorTeamTemplate.BenchPlayersList,
                EventTime           = startTime
            };
            AddEvent(lineup);

            return(lineup);
        }
Exemplo n.º 2
0
 public void LoadLineup(ProjectLongoMatch project, LineupEvent lineup)
 {
     this.lineup = lineup;
     playershbox.Visible = false;
     tagger.SubstitutionMode = true;
     tagger.ShowSubstitutionButtons = false;
     LoadTeams (project, lineup.HomeStartingPlayers, lineup.HomeBenchPlayers,
         lineup.AwayStartingPlayers, lineup.AwayBenchPlayers);
 }
Exemplo n.º 3
0
        public LineupEvent CreateLineupEvent()
        {
            Time startTime;
            LineupEvent lineup;

            if (Periods.Count == 0) {
                startTime = new Time (0);
            } else {
                startTime = Periods [0].PeriodNode.Start;
            }

            lineup = new LineupEvent {
                Name = Catalog.GetString ("Lineup"),
                EventType = SubstitutionsEventType,
                HomeStartingPlayers = LocalTeamTemplate.StartingPlayersList,
                HomeBenchPlayers = LocalTeamTemplate.BenchPlayersList,
                AwayStartingPlayers = VisitorTeamTemplate.StartingPlayersList,
                AwayBenchPlayers = VisitorTeamTemplate.BenchPlayersList,
                EventTime = startTime
            };
            AddEvent (lineup);

            return lineup;
        }