Exemplo n.º 1
0
 /// <summary>
 /// Aggrega statistiche
 /// </summary>
 /// <param name="other"></param>
 public void Sum(DBStats other)
 {
     foreach (var item in this._Data.Values)
     {
         item.Counter += other._Data[item.Statement].Counter;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Statistiche unificate
        /// </summary>
        /// <returns></returns>
        public DBStats GetAllStats()
        {
            DBStats oNewStat = new DBStats();

            foreach (var db in this.Values)
            {
                oNewStat.Sum(db.Stats);
            }

            return(oNewStat);
        }