summaryrefslogtreecommitdiff
path: root/Aktywator/MainForm.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator/MainForm.cs')
-rw-r--r--Aktywator/MainForm.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index 96d965b..e2e87db 100644
--- a/Aktywator/MainForm.cs
+++ b/Aktywator/MainForm.cs
@@ -15,7 +15,7 @@ namespace Aktywator
public string date = "28.06.2017";
private Bws bws;
- private MySQLTournament tournament;
+ private Tournament tournament;
public MainForm()
{
@@ -181,7 +181,7 @@ namespace Aktywator
}
}
- private void updateTournamentInfo(MySQLTournament tournament)
+ private void updateTournamentInfo(Tournament tournament)
{
if (tournament != null)
{
@@ -194,7 +194,7 @@ namespace Aktywator
bSync.Enabled = true;
bAutoSync.Enabled = true;
eInterval.Enabled = true;
- if (tournament.type == MySQLTournament.TYPE_TEAMY)
+ if (tournament.GetType().Equals(typeof(TeamyTournament)))
{
lSkok.Visible = true;
lNazwyTeamow.Visible = true;
@@ -209,6 +209,7 @@ namespace Aktywator
{
lSkok.Visible = false;
lNazwyTeamow.Visible = false;
+
}
}