Beispiel #1
0
        private int _type; // 0-unknown, 1-Pary, 2-Teamy

        #endregion Fields

        #region Constructors

        public Tournament(string name)
        {
            this._name = name;
            mysql = new MySQL(name);
            recognizeType();
        }
Beispiel #2
-1
 public static List<Tournament> getTournaments()
 {
     List<Tournament> list = new List<Tournament>();
     MySQL c = new MySQL("");
     data dbs = c.select("SHOW DATABASES;");
     while (dbs.Read())
     {
         Tournament t = new Tournament(dbs.GetString(0));
         if (t.type > 0)
             list.Add(t);
         t.mysql.close();
     }
     return list;
 }