/// <summary> /// speichert alle Sets des übergebenen Spiels in der DB /// </summary> /// <param name="s">Spiel dessen Sets gespeichert werden sollen</param> public static void SaveSetsToDB(Spiel s) { for (int y = 0; y < s.GetSetsAll().Count; y++) { DBConnect.InsertSet(s.GetSetsAll().ElementAt(y), s); SaveLegsToDB(s.GetSetsAll().ElementAt(y)); } }
public static double GetAnzahlGewonnenLegsSpielAll(Spiel s) { double summe = 0; for (int z = 0; z < s.GetSetsAll().Count; z++) { summe += GetAnzahlGewonnenLegsSet(s.GetSetsAll().ElementAt(z)); } return(summe); }
public static double GetMöglicheFinishSpielAll(Spiel s) { double mögliche = 0; for (int z = 0; z < s.GetSetsAll().Count; z++) { mögliche += GetMöglicheFinishSet(s.GetSetsAll().ElementAt(z)); } return(mögliche); }