示例#1
0
 /// <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));
     }
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }