public void Add(TeamDetails team) { if (team.FunctionalArea.Equals(this.FunctionalArea)) { totalTeams++; } }
internal void Add(TeamDetails team) { if (team.hasBeenCreated) { if (team.DateCreated >= this.Date && team.DateCreated < this.NextDate) { numTeamsCreated++; } if (team.DateCreated < this.NextDate) { numTotalTeams++; } } }
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(); }