diff options
Diffstat (limited to 'Aktywator')
-rw-r--r-- | Aktywator/Bws.cs | 21 | ||||
-rw-r--r-- | Aktywator/HandRecordPreview.cs | 6 | ||||
-rw-r--r-- | Aktywator/MainForm.Designer.cs | 2 | ||||
-rw-r--r-- | Aktywator/MainForm.cs | 5 | ||||
-rw-r--r-- | Aktywator/MainForm.resx | 101 | ||||
-rw-r--r-- | Aktywator/Properties/AssemblyInfo.cs | 6 | ||||
-rw-r--r-- | Aktywator/RRBTournament.cs | 26 | ||||
-rw-r--r-- | Aktywator/Resources/BuildDate.txt | 2 | ||||
-rw-r--r-- | Aktywator/TeamNamesSettings.cs | 4 | ||||
-rw-r--r-- | Aktywator/Tournament.cs | 6 |
10 files changed, 94 insertions, 85 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index 9dedb84..e589418 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -624,10 +624,7 @@ namespace Aktywator while (d.Read()) { - if ("*".Equals(section)) - { - section = this.getBWSNumber(d, 0).ToString(); - } + string pairSection = "*".Equals(section) ? this.getBWSNumber(d, 0).ToString() : section; string table = this.getBWSNumber(d, 1).ToString(); int ns = this.getBWSNumber(d, 2); int ew = this.getBWSNumber(d, 3); @@ -638,14 +635,14 @@ namespace Aktywator { throw new KeyNotFoundException(ns.ToString()); } - countNew += updateName(section, table, "N", names[ns][0]); - countNew += updateName(section, table, "S", names[ns][1]); + countNew += updateName(pairSection, table, "N", names[ns][0]); + countNew += updateName(pairSection, table, "S", names[ns][1]); count += 2; if (tournament.type == Tournament.TYPE_TEAMY) { - countNew += updateName(section, (int.Parse(table) + SKOK_STOLOW).ToString(), "E", + countNew += updateName(pairSection, (int.Parse(table) + SKOK_STOLOW).ToString(), "E", names.ContainsKey(ns + TeamNamesSettings.OpenClosedDiff) ? names[ns + TeamNamesSettings.OpenClosedDiff][0] : names[ns][0]); - countNew += updateName(section, (int.Parse(table) + SKOK_STOLOW).ToString(), "W", + countNew += updateName(pairSection, (int.Parse(table) + SKOK_STOLOW).ToString(), "W", names.ContainsKey(ns + TeamNamesSettings.OpenClosedDiff) ? names[ns + TeamNamesSettings.OpenClosedDiff][1] : names[ns][1]); count += 2; } @@ -667,14 +664,14 @@ namespace Aktywator { throw new KeyNotFoundException(ew.ToString()); } - countNew += updateName(section, table, "E", names[ew][0]); - countNew += updateName(section, table, "W", names[ew][1]); + countNew += updateName(pairSection, table, "E", names[ew][0]); + countNew += updateName(pairSection, table, "W", names[ew][1]); count += 2; if (tournament.type == Tournament.TYPE_TEAMY) { - countNew += updateName(section, (int.Parse(table) + SKOK_STOLOW).ToString(), "N", + countNew += updateName(pairSection, (int.Parse(table) + SKOK_STOLOW).ToString(), "N", names.ContainsKey(ns + TeamNamesSettings.OpenClosedDiff) ? names[ew + TeamNamesSettings.OpenClosedDiff][0] : names[ew][0]); - countNew += updateName(section, (int.Parse(table) + SKOK_STOLOW).ToString(), "S", + countNew += updateName(pairSection, (int.Parse(table) + SKOK_STOLOW).ToString(), "S", names.ContainsKey(ns + TeamNamesSettings.OpenClosedDiff) ? names[ew + TeamNamesSettings.OpenClosedDiff][1] : names[ew][1]); count += 2; } diff --git a/Aktywator/HandRecordPreview.cs b/Aktywator/HandRecordPreview.cs index d5e8446..57562a1 100644 --- a/Aktywator/HandRecordPreview.cs +++ b/Aktywator/HandRecordPreview.cs @@ -29,9 +29,9 @@ namespace Aktywator lSouthHearts.Text = record.south[1]; lSouthDiamonds.Text = record.south[2]; lSouthClubs.Text = record.south[3]; - lWestSpades.Text = record.north[0]; - lWestHearts.Text = record.north[1]; - lWestDiamonds.Text = record.north[2]; + lWestSpades.Text = record.west[0]; + lWestHearts.Text = record.west[1]; + lWestDiamonds.Text = record.west[2]; lWestClubs.Text = record.west[3]; this.Text = "ROZDANIE " + boardNo; } diff --git a/Aktywator/MainForm.Designer.cs b/Aktywator/MainForm.Designer.cs index c5ac4ad..f739912 100644 --- a/Aktywator/MainForm.Designer.cs +++ b/Aktywator/MainForm.Designer.cs @@ -901,8 +901,6 @@ // checkBox1 // this.checkBox1.AutoSize = true; - this.checkBox1.Checked = true; - this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.Location = new System.Drawing.Point(252, 74); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(154, 17); diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs index d510f42..bb6a45e 100644 --- a/Aktywator/MainForm.cs +++ b/Aktywator/MainForm.cs @@ -438,7 +438,6 @@ namespace Aktywator tournament.clearCellLocks(namesGridView); tournament.displayNameList(namesGridView); tournament.clearCellLocks(namesGridView); - namesTimer.Enabled = true; } else { @@ -630,6 +629,10 @@ namespace Aktywator private void checkBox1_CheckedChanged(object sender, EventArgs e) { namesTimer.Enabled = checkBox1.Checked; + if (namesTimer.Enabled) + { + namesTimer_Tick(null, null); + } } private void lGroupSectionsWarning_Click(object sender, EventArgs e) diff --git a/Aktywator/MainForm.resx b/Aktywator/MainForm.resx index 4b7b92d..9d0721f 100644 --- a/Aktywator/MainForm.resx +++ b/Aktywator/MainForm.resx @@ -334,56 +334,57 @@ <data name="bTruncate.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAuJSURBVGhD7ZkJUFRXFoY7IGuzNvRCN2s3zb6DrIKIImgU - iKIisomIosYouMQVjQtiYjQu0ZhkMpXUZIxZRo3OjFNJ3BEhzU5AaeiwNFvTIIpaTpz8cxpeZjJJpVAG - oqnKV3Wr6ff+e/vce88597wH63eeNQZKi5+/Lyt++86ZTz+4c+7U+32nP92uOnnSn7n9VGjKzHRuy8le - 2jzvhQ9U2WmXSyNCL14JC9zA3B7i+7Iy7gNZyV/6P/sTunauQfvGHHTvyEPvoQLc+eNR1O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weZSdBsyEJH7ly0psZBmRiKW5SJGiIpkENk2Mvnl5F02IpzNDjq4VJ+nMutZb4+ + GrXTJtYO5GWga2UqEwcRaIr1xa1oV1yj7BBuaPy//9ocQyz19DzjTU21p/KjZ7zJFhYJHQnR6F2TPvgK + XTV/MloSQ1AW5oECgXU1SZyHlL8aj//6cSmHU9g0JRSdC+PpPIhBVbQ/3uDz+6x0dRMYydNPoqHxthO2 + tl2nKSdvtebesNTRmUuXqUT5DaHPYrlTHtaWDFq3GZOT93d++7BY/wZWjMtWjQTOcAAAAABJRU5ErkJg + gg== </value> </data> <metadata name="toolStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> diff --git a/Aktywator/Properties/AssemblyInfo.cs b/Aktywator/Properties/AssemblyInfo.cs index 423d93f..e31f26d 100644 --- a/Aktywator/Properties/AssemblyInfo.cs +++ b/Aktywator/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Michał Zimniewicz")] [assembly: AssemblyProduct("Aktywator")] -[assembly: AssemblyCopyright("Copyright © 2011-2017 Michał Zimniewicz")] +[assembly: AssemblyCopyright("Copyright © 2011-2018 Michał Zimniewicz")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.2.0")] -[assembly: AssemblyFileVersion("1.1.2.0")] +[assembly: AssemblyVersion("1.1.3.0")] +[assembly: AssemblyFileVersion("1.1.3.0")] diff --git a/Aktywator/RRBTournament.cs b/Aktywator/RRBTournament.cs index 48040ee..3e73d43 100644 --- a/Aktywator/RRBTournament.cs +++ b/Aktywator/RRBTournament.cs @@ -54,25 +54,29 @@ namespace Aktywator override internal Dictionary<int, List<string>> getNameList() { - this._xml.Load(this._name); Dictionary<int, List<string>> names = new Dictionary<int, List<string>>(); - foreach (XmlNode pair in this._xml.SelectNodes("//lista/para")) + try { - int pairNo = Int32.Parse(pair.SelectSingleNode("numer").InnerText); - names.Add(pairNo, new List<string>()); - foreach (XmlNode player in pair.SelectNodes("gracz/nazwisko")) + this._xml.Load(this._name); + foreach (XmlNode pair in this._xml.SelectNodes("//lista/para")) { - names[pairNo].Add(player.InnerText); + int pairNo = Int32.Parse(pair.SelectSingleNode("numer").InnerText); + names.Add(pairNo, new List<string>()); + foreach (XmlNode player in pair.SelectNodes("gracz/nazwisko")) + { + names[pairNo].Add(player.InnerText); + } } - } - foreach (KeyValuePair<int, List<string>> pair in names) - { - while (pair.Value.Count < 2) + foreach (KeyValuePair<int, List<string>> pair in names) { - pair.Value.Add(" "); + while (pair.Value.Count < 2) + { + pair.Value.Add(" "); + } } } + catch (Exception) { } return names; } } diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt index 6b9b605..2ee3a9a 100644 --- a/Aktywator/Resources/BuildDate.txt +++ b/Aktywator/Resources/BuildDate.txt @@ -1 +1 @@ -2017-11-20 +2018-01-04 diff --git a/Aktywator/TeamNamesSettings.cs b/Aktywator/TeamNamesSettings.cs index 034e362..d8f8e6e 100644 --- a/Aktywator/TeamNamesSettings.cs +++ b/Aktywator/TeamNamesSettings.cs @@ -79,7 +79,7 @@ namespace Aktywator ret.Append("SELECT teams.id, "); if (rbShowTeamNames.Checked) { - ret.Append("fullname, "); + ret.Append("shortname, "); switch (cbSecondRow.SelectedIndex) { case 0: ret.Append("' ' FROM teams ORDER BY teams.id"); @@ -99,7 +99,7 @@ namespace Aktywator ret.Append(" GROUP BY teams.id ORDER BY teams.id"); break; case 2: - ret.Append("CONCAT(SUM(IF(matches.homet = teams.id, vph+corrh, vpv+corrv)) + teams.score, ' VP') FROM teams LEFT JOIN matches ON (teams.id = matches.homet OR teams.id = matches.visit) AND matches.rnd <= "); + ret.Append("CONCAT(SUM(IF(matches.homet = teams.id, vph+corrh, vpv+corrv)) + teams.score, ' VP') FROM teams LEFT JOIN matches ON (teams.id = matches.homet OR teams.id = matches.visit) AND matches.rnd < "); ret.Append(cbRounds.SelectedItem); ret.Append(" GROUP BY teams.id ORDER BY teams.id"); break; diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs index 117b1da..d6da2d4 100644 --- a/Aktywator/Tournament.cs +++ b/Aktywator/Tournament.cs @@ -43,6 +43,12 @@ namespace Aktywator virtual public void displayNameList(DataGridView grid) { Dictionary<int, List<string>> names = this.getNameList(); + if (names.Count == 0) + { + MessageBox.Show( + "Lista pobranych nazwisk jest pusta - być może coś poszło nie tak przy ich pobieraniu.", + "Pusta lista nazwisk", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } foreach (KeyValuePair<int, List<string>> item in names) { if (!this.updateNameListRow(grid, item.Key, item.Value)) { |