From d0ab712a7ad746c258a8f82fcbcf76dcd78d9510 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 23 Aug 2017 14:46:05 +0200 Subject: Player names tab redesigned --- Aktywator/MainForm.cs | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'Aktywator/MainForm.cs') diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs index 37a482a..3cf660a 100644 --- a/Aktywator/MainForm.cs +++ b/Aktywator/MainForm.cs @@ -72,6 +72,7 @@ namespace Aktywator this.bwsSettings.Add(new Setting("BM2ShowPlayerNames", this.xShowPlayerNames, bws, new Version(2, 0, 0), new Version(1, 3, 1))); bindSettingChanges(); bws.loadSettings(); + syncToolStrip.Visible = false; this.WindowState = FormWindowState.Normal; } @@ -337,9 +338,7 @@ namespace Aktywator lType.Text = tournament.getTypeLabel(); lSections.Text = tournament.getSectionsNum(); lTables.Text = tournament.getTablesNum(); - bSync.Enabled = true; - bAutoSync.Enabled = true; - eInterval.Enabled = true; + syncToolStrip.Visible = true; if (tournament.GetType().Equals(typeof(TeamyTournament))) { lSkok.Visible = true; @@ -355,7 +354,6 @@ namespace Aktywator { lSkok.Visible = false; lNazwyTeamow.Visible = false; - } } @@ -402,17 +400,17 @@ namespace Aktywator timer.Interval = interval * 1000; eInterval.Enabled = false; bAutoSync.Text = "pracuje siÄ™..."; - bMySQLTournament.Enabled = false; bMysqlSettings.Enabled = false; + toolStripSplitButton1.Enabled = false; timer.Enabled = true; } else { timer.Enabled = false; - bAutoSync.Text = "Synchronizuj cyklicznie"; + bAutoSync.Text = "Synchronizuj co:"; eInterval.Enabled = true; - bMySQLTournament.Enabled = true; bMysqlSettings.Enabled = true; + toolStripSplitButton1.Enabled = true; } } @@ -488,5 +486,16 @@ namespace Aktywator } } + private void toolStripSplitButton1_ButtonClick(object sender, EventArgs e) + { + toolStripSplitButton1.ShowDropDown(); + } + + private void toolStripButton2_CheckedChanged(object sender, EventArgs e) + { + eOomRounds.Enabled = toolStripButton2.Checked; + lOomLabel.Enabled = toolStripButton2.Checked; + } + } } -- cgit v1.2.3