summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/MainForm.Designer.cs6
-rw-r--r--Aktywator/MainForm.resx100
-rw-r--r--Aktywator/PBNBoard.cs15
-rw-r--r--Aktywator/Resources/BuildDate.txt2
-rw-r--r--Aktywator/TeamNamesSettings.Designer.cs8
-rw-r--r--Aktywator/TeamNamesSettings.cs6
-rw-r--r--Aktywator/TeamyTournament.cs9
-rw-r--r--Aktywator/Tournament.cs2
8 files changed, 86 insertions, 62 deletions
diff --git a/Aktywator/MainForm.Designer.cs b/Aktywator/MainForm.Designer.cs
index f739912..7485e01 100644
--- a/Aktywator/MainForm.Designer.cs
+++ b/Aktywator/MainForm.Designer.cs
@@ -890,9 +890,9 @@
this.bTeamsNamesSettings.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.bTeamsNamesSettings.Image = ((System.Drawing.Image)(resources.GetObject("bTeamsNamesSettings.Image")));
this.bTeamsNamesSettings.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.bTeamsNamesSettings.Location = new System.Drawing.Point(188, 40);
+ this.bTeamsNamesSettings.Location = new System.Drawing.Point(169, 40);
this.bTeamsNamesSettings.Name = "bTeamsNamesSettings";
- this.bTeamsNamesSettings.Size = new System.Drawing.Size(136, 23);
+ this.bTeamsNamesSettings.Size = new System.Drawing.Size(155, 23);
this.bTeamsNamesSettings.TabIndex = 36;
this.bTeamsNamesSettings.UseVisualStyleBackColor = true;
this.bTeamsNamesSettings.Visible = false;
@@ -956,7 +956,7 @@
this.label9.Size = new System.Drawing.Size(499, 13);
this.label9.TabIndex = 31;
this.label9.Text = "Zmiany wprowadzone powyżej nie zostaną nadpisane danymi z turnieju i nie zostaną " +
- "zapisane w turnieju.";
+ "zapisane w turnieju.";
//
// label7
//
diff --git a/Aktywator/MainForm.resx b/Aktywator/MainForm.resx
index 9d0721f..a60549f 100644
--- a/Aktywator/MainForm.resx
+++ b/Aktywator/MainForm.resx
@@ -334,56 +334,56 @@
<data name="bTruncate.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAuKSURBVGhD7ZkJVJNXFsdTkDWsgSwkkECAsO/IKogoglaB
- Kioim4goaq3iVle0Loit1bq01rbTOe2ZjrXLqNWZcU5bd0Ro2CkogZQlbCEginqcdvqfG/g602lPD8pA
- tef0d847Id/3fy/3vXfvfff7YP3O08ZAafGz9+XFb90588n7d86deq/v9Cc71CdPBjC3nwhNWVkubbk5
- S5vnPfe+Oif9cmlk2MUr4UEbmdtDfF9Wxn0gL/lL/6d/QteutWjflIvunWvQe7gAd/74BuoOvHwu0N7e
- hZGPOTVz5pg0L8/NUW3Iu3F77xZ0bV6B+qRpOOPhgiXm7LNiXd0kkhkPir9vVYY8lBe1q1/bhebceWhZ
- ngzVmoXo2JyLrh2r0b17Le6/9hJU+fn/3D5j+ubBTmOEIiaG15A8t6DrxRc19945iIE3CtC0eD7OusmQ
- Zmz8sSmLNYNkgiE1kTh1asDr+fnfd+Y/T8bPQdvqTKjWZ6Mz/wV0790I9f589BzYjp7929D/yhbg8E7c
- WLpIHiQS+TBDjBqNaQs2t65f33/33SN4+OGb6CzYiOuTI5BvafmVLUtnIUlsh5Q/4ui2LTvxwZtQ0ap3
- rMuCakMOOratJONfRA/tSM+RPdAcLUDvoV3opYn00iT+VbgBdzauwMawkNXMMP8Xyuzs51SrXlD0HdqD
- B3/Yj4F39uPWikU4IZUOROvpvUwST2qGg+KfwmazeW8uTL3avGUN1JuXQb1jFdS08j2v7YTm2D70HnsF
- fa/vRZ92Agd3DE6gr4AmsH0F/kU7dTIu+mMOi2XGDPdYKDMyBMrFWR+pt67G7V2rca9wPdQ716Jk+hRs
- s7AooXFnk4w+h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LSUaylgf1E5yoxJBhooAEbmNYHD1r7qKkGNpeZqko1YW8/XYHmVyyb0O
+ 2Th6RDVDEsdiC3Pr8agKCkpqz56HlnmT0DhjPOome6Ca3KiCqssq7RlAsfCuWHSXrasbxXQZNRKsrHK6
+ fCRo9eTjrIw7soxUFxN5pnMZTSB5Chrjg3Ez2gs14U6DcVDlL4DCyw5ZFhYnSTr0Xn6UOe7k8GWblxwq
+ TymCjIy070UfnXLKPDdnzeztXD4XrakxUD0XhvqpPvg6XI7KQDGq/W1Q4umAMCP2CqbLqGOjr+9ygct9
+ 2ObqiN0CwSnm8qNR6+np3JyaCM3KZLSmP4tvZkegPtYXtREUyFQ61wSKcMlVDB5r8I3CmLFcZLO929UJ
+ Fxwk99gUHszl4Tkmk/l1LUiAJjcN6sw4NM2JhHK6P+oiXVBNDy61QXb43EUMCxYrgukyJpibm1tW+koH
+ WqQSKg71E5jLwxNkbu5/P2suetZkoC17FprnT0HDjEDcjHJDLZUSNZROz8odvqNTazzTZczIcnTc0O/h
+ imXm5oeYS8Mz0czM8UFGIno2ZKI9Zy5aUmKhSgjBLcpE9REUyMFy7OXzS0k6bMU5Ghx1dy47zuXWMF8f
+ jZppE2sGctPRuTKFiYNwNMb44FaUC65RdggzNP7ff22OIZZ6eh5xpqbaU/nRM95kC4v49vgo9K5JG3yF
+ rp4/Gc0JwSgNdUe+wLqKJE5Dyl+Nx3/9uJTDKWicEoKOhXF0HkSjMsoPb/D5fVa6uvGM5OknwdB42wlb
+ 287TlJO3WnNvWOrozKXLVKL8htBnsdwoD2tLBq3bjMnJ+zu/fVisfwMVwMtUf+V6egAAAABJRU5ErkJg
gg==
</value>
</data>
diff --git a/Aktywator/PBNBoard.cs b/Aktywator/PBNBoard.cs
index fadfd22..994108e 100644
--- a/Aktywator/PBNBoard.cs
+++ b/Aktywator/PBNBoard.cs
@@ -88,7 +88,20 @@ namespace Aktywator
public String GetLayout()
{
string[] dealParts = this.GetField("Deal").Split(':');
- return dealParts[dealParts.Length - 1];
+ string layout = dealParts[dealParts.Length - 1];
+ if (dealParts.Length > 1)
+ {
+ string[] layoutParts = layout.Split(' ');
+ string[] rotatedLayout = { "", "", "", "" };
+ char dealer = dealParts[0][0];
+ int rotation = Array.IndexOf(DDTable.PLAYERS, dealer);
+ for (int i = 0; i < rotatedLayout.Length; i++)
+ {
+ rotatedLayout[(i + rotation) % rotatedLayout.Length] = layoutParts[i];
+ }
+ layout = String.Join(" ", rotatedLayout);
+ }
+ return layout;
}
public String GetNumber()
diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt
index 2ee3a9a..fb76437 100644
--- a/Aktywator/Resources/BuildDate.txt
+++ b/Aktywator/Resources/BuildDate.txt
@@ -1 +1 @@
-2018-01-04
+2018-02-04
diff --git a/Aktywator/TeamNamesSettings.Designer.cs b/Aktywator/TeamNamesSettings.Designer.cs
index 07b1d97..6de9ec4 100644
--- a/Aktywator/TeamNamesSettings.Designer.cs
+++ b/Aktywator/TeamNamesSettings.Designer.cs
@@ -134,10 +134,10 @@
this.cbSecondRow.Items.AddRange(new object[] {
"nic",
"wynik meczu w IMP",
- "wynik drużyny w VP"});
+ "wynik turnieju w VP/IMP"});
this.cbSecondRow.Location = new System.Drawing.Point(103, 112);
this.cbSecondRow.Name = "cbSecondRow";
- this.cbSecondRow.Size = new System.Drawing.Size(115, 21);
+ this.cbSecondRow.Size = new System.Drawing.Size(128, 21);
this.cbSecondRow.TabIndex = 9;
//
// rbShowPlayerNames
@@ -155,7 +155,7 @@
//
this.bClose.Location = new System.Drawing.Point(16, 164);
this.bClose.Name = "bClose";
- this.bClose.Size = new System.Drawing.Size(202, 23);
+ this.bClose.Size = new System.Drawing.Size(215, 23);
this.bClose.TabIndex = 11;
this.bClose.Text = "Zamknij";
this.bClose.UseVisualStyleBackColor = true;
@@ -165,7 +165,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(230, 199);
+ this.ClientSize = new System.Drawing.Size(243, 199);
this.Controls.Add(this.bClose);
this.Controls.Add(this.rbShowPlayerNames);
this.Controls.Add(this.cbSecondRow);
diff --git a/Aktywator/TeamNamesSettings.cs b/Aktywator/TeamNamesSettings.cs
index d8f8e6e..23cc865 100644
--- a/Aktywator/TeamNamesSettings.cs
+++ b/Aktywator/TeamNamesSettings.cs
@@ -58,7 +58,7 @@ namespace Aktywator
}
if (cbSecondRow.SelectedIndex == 2)
{
- ret.Append(" + VP");
+ ret.Append(" + VP/IMP");
}
}
else
@@ -99,7 +99,9 @@ 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, ' ");
+ ret.Append(this.tournament.getPointsUnit());
+ ret.Append("') 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/TeamyTournament.cs b/Aktywator/TeamyTournament.cs
index 8da063d..01034b5 100644
--- a/Aktywator/TeamyTournament.cs
+++ b/Aktywator/TeamyTournament.cs
@@ -91,5 +91,14 @@ namespace Aktywator
finished.Close();
return segment;
}
+
+ internal String getPointsUnit()
+ {
+ MySqlDataReader points = this.mysql.select("SELECT imponly FROM admin");
+ points.Read();
+ int unit = points.GetInt32(0);
+ points.Close();
+ return (unit < 0) ? "IMP" : "VP";
+ }
}
}
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs
index d6da2d4..5fd6772 100644
--- a/Aktywator/Tournament.cs
+++ b/Aktywator/Tournament.cs
@@ -96,7 +96,7 @@ namespace Aktywator
{
DataGridViewRow row = new DataGridViewRow();
row.Cells.Add(new DataGridViewTextBoxCell());
- row.Cells[0].Value = pairNumber.ToString();
+ row.Cells[0].Value = pairNumber;
foreach (string name in names)
{
DataGridViewTextBoxCell cell = new DataGridViewTextBoxCell();