Exemplo n.º 1
0
 public void Add(TeamDetails team)
 {
     if (team.FunctionalArea.Equals(this.FunctionalArea))
     {
         totalTeams++;
     }
 }
Exemplo n.º 2
0
 internal void Add(TeamDetails team)
 {
     if (team.hasBeenCreated)
     {
         if (team.DateCreated >= this.Date && team.DateCreated < this.NextDate)
         {
             numTeamsCreated++;
         }
         if (team.DateCreated < this.NextDate)
         {
             numTotalTeams++;
         }
     }
 }
Exemplo n.º 3
0
        private void calculateTeamFigures(Excel.Workbook processed)
        {
            foreach (WorkBoxDetails workBox in AllWorkBoxes)
            {
                if (!workBox.LoadedOK || String.IsNullOrEmpty(workBox.OwningTeam))
                {
                    continue;
                }

                TeamDetails figuresForTeam = AllTeams[workBox.OwningTeam];
                if (figuresForTeam == null)
                {
                    figuresForTeam = new TeamDetails(workBox.OwningTeam);
                    AllTeams.Add(figuresForTeam);
                }

                figuresForTeam.Add(workBox);
            }
            AllTeams.SaveToSheet();
        }