/// <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; } }
/// <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); }