summaryrefslogtreecommitdiff
path: root/Aktywator/ParyTournament.cs
blob: 8d80d9f204f31a9d7858911b863d3d409248f831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Text;

namespace Aktywator
{
    class ParyTournament: MySQLTournament
    {
        public ParyTournament(string name)
            : base(name)
        {
        }

        override internal string getTypeLabel()
        {
            return "Pary";
        }

        override public string getSectionsNum()
        {
            return this.mysql.selectOne("SELECT COUNT(DISTINCT seknum) FROM sektory;");
        }

        override public string getTablesNum()
        {
            return this.mysql.selectOne("SELECT COUNT(*) FROM sektory;");
        }

    }
}