コード例 #1
0
 public void Add(TeamDetails team)
 {
     if (team.FunctionalArea.Equals(this.FunctionalArea))
     {
         totalTeams++;
     }
 }
コード例 #2
0
ファイル: FiguresForOneMonth.cs プロジェクト: OliSharpe/wbf
 internal void Add(TeamDetails team)
 {
     if (team.hasBeenCreated)
     {
         if (team.DateCreated >= this.Date && team.DateCreated < this.NextDate)
         {
             numTeamsCreated++;
         }
         if (team.DateCreated < this.NextDate)
         {
             numTotalTeams++;
         }
     }
 }
コード例 #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();
        }