summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-23 17:18:38 +0200
committeremkael <emkael@tlen.pl>2017-08-23 17:18:38 +0200
commit7a496566f759a5aac8b56d46c1b9eb36bdcb3f52 (patch)
tree46cc61cb4764af626a59f3236a9c9e7f75c02a1c /Aktywator
parent6ad488f28bfd74c39be0c420a671b7c33f9250d6 (diff)
Editor for BWS names
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Bws.cs4
-rw-r--r--Aktywator/MainForm.Designer.cs310
-rw-r--r--Aktywator/MainForm.cs25
-rw-r--r--Aktywator/MainForm.resx214
-rw-r--r--Aktywator/Tournament.cs89
5 files changed, 416 insertions, 226 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 31686c9..4400272 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -358,7 +358,7 @@ namespace Aktywator
throw new InvalidCastException("Unable to read numeric value from BWS field");
}
- public void syncNames(Tournament tournament, bool interactive, string startRounds)
+ public void syncNames(Tournament tournament, bool interactive, string startRounds, DataGridView grid)
{
int count = 0, countNew = 0, SKOK_STOLOW = 100;
OleDbDataReader d;
@@ -382,7 +382,7 @@ namespace Aktywator
try
{
- Dictionary<int, List<String>> names = tournament.getNameList();
+ Dictionary<int, List<String>> names = tournament.getBWSNames(grid);
while (d.Read())
{
diff --git a/Aktywator/MainForm.Designer.cs b/Aktywator/MainForm.Designer.cs
index eb5cf5f..50830b6 100644
--- a/Aktywator/MainForm.Designer.cs
+++ b/Aktywator/MainForm.Designer.cs
@@ -84,6 +84,22 @@
this.xShowPlayerNames = new System.Windows.Forms.CheckBox();
this.label1 = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage();
+ this.namesPanel = new System.Windows.Forms.Panel();
+ this.label3 = new System.Windows.Forms.Label();
+ this.namesGridView = new System.Windows.Forms.DataGridView();
+ this.Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.NorthSouth = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.EastWest = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.lTournament = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.lType = new System.Windows.Forms.Label();
+ this.lNazwyTeamow = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.lSkok = new System.Windows.Forms.Label();
+ this.lSections = new System.Windows.Forms.Label();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label6 = new System.Windows.Forms.Label();
+ this.lTables = new System.Windows.Forms.Label();
this.syncToolStrip = new System.Windows.Forms.ToolStrip();
this.bSync = new System.Windows.Forms.ToolStripButton();
this.bAutoSync = new System.Windows.Forms.ToolStripButton();
@@ -98,17 +114,6 @@
this.bMysqlSettings = new System.Windows.Forms.ToolStripButton();
this.bForceSync = new System.Windows.Forms.ToolStripButton();
this.bTruncate = new System.Windows.Forms.ToolStripButton();
- this.lNazwyTeamow = new System.Windows.Forms.Label();
- this.lSkok = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.lTables = new System.Windows.Forms.Label();
- this.lSections = new System.Windows.Forms.Label();
- this.lType = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.lTournament = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.toolStrip3 = new System.Windows.Forms.ToolStrip();
this.bLoadHands = new System.Windows.Forms.ToolStripButton();
@@ -122,6 +127,7 @@
this.labelFilename = new System.Windows.Forms.ToolStripLabel();
this.bLaunch = new System.Windows.Forms.ToolStripButton();
this.bUpdateSession = new System.Windows.Forms.ToolStripButton();
+ this.namesTimer = new System.Windows.Forms.Timer(this.components);
this.statusStrip1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabControl1.SuspendLayout();
@@ -135,6 +141,8 @@
this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout();
this.tabPage2.SuspendLayout();
+ this.namesPanel.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.namesGridView)).BeginInit();
this.syncToolStrip.SuspendLayout();
this.toolStrip4.SuspendLayout();
this.tabPage3.SuspendLayout();
@@ -704,19 +712,9 @@
//
// tabPage2
//
+ this.tabPage2.Controls.Add(this.namesPanel);
this.tabPage2.Controls.Add(this.syncToolStrip);
this.tabPage2.Controls.Add(this.toolStrip4);
- this.tabPage2.Controls.Add(this.lNazwyTeamow);
- this.tabPage2.Controls.Add(this.lSkok);
- this.tabPage2.Controls.Add(this.label8);
- this.tabPage2.Controls.Add(this.lTables);
- this.tabPage2.Controls.Add(this.lSections);
- this.tabPage2.Controls.Add(this.lType);
- this.tabPage2.Controls.Add(this.label6);
- this.tabPage2.Controls.Add(this.label5);
- this.tabPage2.Controls.Add(this.label4);
- this.tabPage2.Controls.Add(this.lTournament);
- this.tabPage2.Controls.Add(this.label3);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
@@ -725,9 +723,163 @@
this.tabPage2.Text = "Nazwiska";
this.tabPage2.UseVisualStyleBackColor = true;
//
+ // namesPanel
+ //
+ this.namesPanel.Controls.Add(this.label3);
+ this.namesPanel.Controls.Add(this.namesGridView);
+ this.namesPanel.Controls.Add(this.lTournament);
+ this.namesPanel.Controls.Add(this.label4);
+ this.namesPanel.Controls.Add(this.lType);
+ this.namesPanel.Controls.Add(this.lNazwyTeamow);
+ this.namesPanel.Controls.Add(this.label5);
+ this.namesPanel.Controls.Add(this.lSkok);
+ this.namesPanel.Controls.Add(this.lSections);
+ this.namesPanel.Controls.Add(this.label8);
+ this.namesPanel.Controls.Add(this.label6);
+ this.namesPanel.Controls.Add(this.lTables);
+ this.namesPanel.Location = new System.Drawing.Point(3, 31);
+ this.namesPanel.Name = "namesPanel";
+ this.namesPanel.Size = new System.Drawing.Size(562, 449);
+ this.namesPanel.TabIndex = 29;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(16, 18);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(42, 13);
+ this.label3.TabIndex = 0;
+ this.label3.Text = "Turniej:";
+ //
+ // namesGridView
+ //
+ this.namesGridView.AllowUserToAddRows = false;
+ this.namesGridView.AllowUserToDeleteRows = false;
+ this.namesGridView.AllowUserToResizeColumns = false;
+ this.namesGridView.AllowUserToResizeRows = false;
+ this.namesGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
+ this.namesGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.namesGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.Number,
+ this.NorthSouth,
+ this.EastWest});
+ this.namesGridView.Location = new System.Drawing.Point(2, 112);
+ this.namesGridView.Name = "namesGridView";
+ this.namesGridView.Size = new System.Drawing.Size(557, 318);
+ this.namesGridView.TabIndex = 28;
+ this.namesGridView.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.namesGridView_CellValueChanged);
+ //
+ // Number
+ //
+ this.Number.HeaderText = "Nr";
+ this.Number.Name = "Number";
+ this.Number.ReadOnly = true;
+ //
+ // NorthSouth
+ //
+ this.NorthSouth.FillWeight = 300F;
+ this.NorthSouth.HeaderText = "NS";
+ this.NorthSouth.Name = "NorthSouth";
+ //
+ // EastWest
+ //
+ this.EastWest.FillWeight = 300F;
+ this.EastWest.HeaderText = "EW";
+ this.EastWest.Name = "EastWest";
+ //
+ // lTournament
+ //
+ this.lTournament.AutoSize = true;
+ this.lTournament.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
+ this.lTournament.Location = new System.Drawing.Point(64, 18);
+ this.lTournament.Name = "lTournament";
+ this.lTournament.Size = new System.Drawing.Size(0, 16);
+ this.lTournament.TabIndex = 2;
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(30, 40);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(28, 13);
+ this.label4.TabIndex = 3;
+ this.label4.Text = "Typ:";
+ //
+ // lType
+ //
+ this.lType.AutoSize = true;
+ this.lType.Location = new System.Drawing.Point(64, 40);
+ this.lType.Name = "lType";
+ this.lType.Size = new System.Drawing.Size(0, 13);
+ this.lType.TabIndex = 6;
+ //
+ // lNazwyTeamow
+ //
+ this.lNazwyTeamow.AutoSize = true;
+ this.lNazwyTeamow.Location = new System.Drawing.Point(30, 66);
+ this.lNazwyTeamow.Name = "lNazwyTeamow";
+ this.lNazwyTeamow.Size = new System.Drawing.Size(227, 13);
+ this.lNazwyTeamow.TabIndex = 20;
+ this.lNazwyTeamow.Text = "w piernikach będą wyświetlane nazwy teamów";
+ this.lNazwyTeamow.Visible = false;
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(410, 18);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(55, 13);
+ this.label5.TabIndex = 4;
+ this.label5.Text = "Sektorów:";
+ //
+ // lSkok
+ //
+ this.lSkok.AutoSize = true;
+ this.lSkok.Location = new System.Drawing.Point(52, 84);
+ this.lSkok.Name = "lSkok";
+ this.lSkok.Size = new System.Drawing.Size(188, 13);
+ this.lSkok.TabIndex = 19;
+ this.lSkok.Text = "mam nadzieję, że skok stołów = 100 :)";
+ this.lSkok.Visible = false;
+ //
+ // lSections
+ //
+ this.lSections.AutoSize = true;
+ this.lSections.Location = new System.Drawing.Point(471, 18);
+ this.lSections.Name = "lSections";
+ this.lSections.Size = new System.Drawing.Size(0, 13);
+ this.lSections.TabIndex = 7;
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.Location = new System.Drawing.Point(0, 433);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(291, 13);
+ this.label8.TabIndex = 12;
+ this.label8.Text = "Do serwerka wysyłane są tylko nazwiska, które się zmieniły.";
+ //
+ // label6
+ //
+ this.label6.AutoSize = true;
+ this.label6.Location = new System.Drawing.Point(421, 40);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(44, 13);
+ this.label6.TabIndex = 5;
+ this.label6.Text = "Stołów:";
+ //
+ // lTables
+ //
+ this.lTables.AutoSize = true;
+ this.lTables.Location = new System.Drawing.Point(471, 40);
+ this.lTables.Name = "lTables";
+ this.lTables.Size = new System.Drawing.Size(0, 13);
+ this.lTables.TabIndex = 8;
+ //
// syncToolStrip
//
this.syncToolStrip.BackColor = System.Drawing.Color.White;
+ this.syncToolStrip.Dock = System.Windows.Forms.DockStyle.Bottom;
this.syncToolStrip.GripMargin = new System.Windows.Forms.Padding(0);
this.syncToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
this.syncToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -737,7 +889,7 @@
this.eOomRounds,
this.lOomLabel,
this.toolStripButton2});
- this.syncToolStrip.Location = new System.Drawing.Point(3, 28);
+ this.syncToolStrip.Location = new System.Drawing.Point(3, 483);
this.syncToolStrip.Name = "syncToolStrip";
this.syncToolStrip.Size = new System.Drawing.Size(563, 25);
this.syncToolStrip.TabIndex = 27;
@@ -878,104 +1030,6 @@
this.bTruncate.Text = "Usuń nazwiska z BWS";
this.bTruncate.Click += new System.EventHandler(this.bTruncate_Click);
//
- // lNazwyTeamow
- //
- this.lNazwyTeamow.AutoSize = true;
- this.lNazwyTeamow.Location = new System.Drawing.Point(25, 121);
- this.lNazwyTeamow.Name = "lNazwyTeamow";
- this.lNazwyTeamow.Size = new System.Drawing.Size(227, 13);
- this.lNazwyTeamow.TabIndex = 20;
- this.lNazwyTeamow.Text = "w piernikach będą wyświetlane nazwy teamów";
- this.lNazwyTeamow.Visible = false;
- //
- // lSkok
- //
- this.lSkok.AutoSize = true;
- this.lSkok.Location = new System.Drawing.Point(47, 139);
- this.lSkok.Name = "lSkok";
- this.lSkok.Size = new System.Drawing.Size(188, 13);
- this.lSkok.TabIndex = 19;
- this.lSkok.Text = "mam nadzieję, że skok stołów = 100 :)";
- this.lSkok.Visible = false;
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(126, 161);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(291, 13);
- this.label8.TabIndex = 12;
- this.label8.Text = "Do serwerka wysyłane są tylko nazwiska, które się zmieniły.";
- //
- // lTables
- //
- this.lTables.AutoSize = true;
- this.lTables.Location = new System.Drawing.Point(423, 97);
- this.lTables.Name = "lTables";
- this.lTables.Size = new System.Drawing.Size(0, 13);
- this.lTables.TabIndex = 8;
- //
- // lSections
- //
- this.lSections.AutoSize = true;
- this.lSections.Location = new System.Drawing.Point(423, 70);
- this.lSections.Name = "lSections";
- this.lSections.Size = new System.Drawing.Size(0, 13);
- this.lSections.TabIndex = 7;
- //
- // lType
- //
- this.lType.AutoSize = true;
- this.lType.Location = new System.Drawing.Point(59, 97);
- this.lType.Name = "lType";
- this.lType.Size = new System.Drawing.Size(0, 13);
- this.lType.TabIndex = 6;
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(373, 97);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(44, 13);
- this.label6.TabIndex = 5;
- this.label6.Text = "Stołów:";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(362, 70);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(55, 13);
- this.label5.TabIndex = 4;
- this.label5.Text = "Sektorów:";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(25, 97);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(28, 13);
- this.label4.TabIndex = 3;
- this.label4.Text = "Typ:";
- //
- // lTournament
- //
- this.lTournament.AutoSize = true;
- this.lTournament.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
- this.lTournament.Location = new System.Drawing.Point(59, 70);
- this.lTournament.Name = "lTournament";
- this.lTournament.Size = new System.Drawing.Size(0, 16);
- this.lTournament.TabIndex = 2;
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(11, 70);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(42, 13);
- this.label3.TabIndex = 0;
- this.label3.Text = "Turniej:";
- //
// tabPage3
//
this.tabPage3.Controls.Add(this.toolStrip3);
@@ -1104,6 +1158,11 @@
this.bUpdateSession.ToolTipText = "Update ustawień w trakcie sesji";
this.bUpdateSession.Click += new System.EventHandler(this.updateSession_Click);
//
+ // namesTimer
+ //
+ this.namesTimer.Interval = 500;
+ this.namesTimer.Tick += new System.EventHandler(this.namesTimer_Tick);
+ //
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -1144,6 +1203,9 @@
this.groupBox2.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
+ this.namesPanel.ResumeLayout(false);
+ this.namesPanel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.namesGridView)).EndInit();
this.syncToolStrip.ResumeLayout(false);
this.syncToolStrip.PerformLayout();
this.toolStrip4.ResumeLayout(false);
@@ -1253,6 +1315,12 @@
private System.Windows.Forms.ToolStripTextBox eOomRounds;
private System.Windows.Forms.ToolStripLabel lOomLabel;
private System.Windows.Forms.ToolStripButton toolStripButton2;
+ private System.Windows.Forms.DataGridView namesGridView;
+ private System.Windows.Forms.DataGridViewTextBoxColumn Number;
+ private System.Windows.Forms.DataGridViewTextBoxColumn NorthSouth;
+ private System.Windows.Forms.DataGridViewTextBoxColumn EastWest;
+ private System.Windows.Forms.Panel namesPanel;
+ private System.Windows.Forms.Timer namesTimer;
}
}
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index 3cf660a..4eec352 100644
--- a/Aktywator/MainForm.cs
+++ b/Aktywator/MainForm.cs
@@ -73,6 +73,7 @@ namespace Aktywator
bindSettingChanges();
bws.loadSettings();
syncToolStrip.Visible = false;
+ namesPanel.Visible = false;
this.WindowState = FormWindowState.Normal;
}
@@ -339,6 +340,11 @@ namespace Aktywator
lSections.Text = tournament.getSectionsNum();
lTables.Text = tournament.getTablesNum();
syncToolStrip.Visible = true;
+ namesPanel.Visible = true;
+ tournament.clearCellLocks(namesGridView);
+ tournament.displayNameList(namesGridView);
+ tournament.clearCellLocks(namesGridView);
+ namesTimer.Enabled = true;
if (tournament.GetType().Equals(typeof(TeamyTournament)))
{
lSkok.Visible = true;
@@ -361,7 +367,7 @@ namespace Aktywator
{
try
{
- bws.syncNames(tournament, true, eOomRounds.Text);
+ bws.syncNames(tournament, true, eOomRounds.Text, namesGridView);
}
catch (Exception ee)
{
@@ -416,7 +422,7 @@ namespace Aktywator
private void timer_Tick(object sender, EventArgs e)
{
- bws.syncNames(tournament, false, eOomRounds.Text);
+ bws.syncNames(tournament, false, eOomRounds.Text, namesGridView);
}
private void bForceSync_Click(object sender, EventArgs e)
@@ -497,5 +503,20 @@ namespace Aktywator
lOomLabel.Enabled = toolStripButton2.Checked;
}
+ private void namesGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex > -1 && e.ColumnIndex > 0)
+ {
+ DataGridViewCell cell = namesGridView.Rows[e.RowIndex].Cells[e.ColumnIndex];
+ cell.Tag = true;
+ cell.Style.BackColor = Color.Yellow;
+ }
+ }
+
+ private void namesTimer_Tick(object sender, EventArgs e)
+ {
+ tournament.displayNameList(namesGridView);
+ }
+
}
}
diff --git a/Aktywator/MainForm.resx b/Aktywator/MainForm.resx
index 4b74fb3..089c663 100644
--- a/Aktywator/MainForm.resx
+++ b/Aktywator/MainForm.resx
@@ -158,6 +158,15 @@
AABJRU5ErkJggg==
</value>
</data>
+ <metadata name="Number.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="NorthSouth.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <metadata name="EastWest.UserAddedColumn" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
<metadata name="syncToolStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>343, 21</value>
</metadata>
@@ -178,12 +187,12 @@
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAH5SURBVDhPYyAG8CryqumkqZRDuSQACwZOIMmlGaoY0/G1
8L+wNp8pRIIAkPUUD/eeb7ch9VjY3ewL0fdLbyQ+7/5W+j9yvedZoDQrRBV2wGTVqDev7HnC/9YfOf87
/+f/b/6T8b/4VfT/xBs+/yOuOf+XTxRuhqrFBGZVupOKnsf8D97o+Nhmou4uix6tDV4bja/G3nL773Xc
- 7L/1fvX/KvPFPzNwMUhAtSCAsAGfaeBO+4/i9kI5QK4IRJSBQT5etCLgluV/k6VKX6VSeJaySDJYA4VZ
+ 7L/1fvX/8vPFPzNwMUhAtSCAsAGfaeBO+4/i9kI5QK4IRJSBQT5etCLgluV/k6VKX6VSeJaySDJYA4VZ
ILJIQNZXPIFbmt0ByoUD9Xap9XIpgvNYBRj0oEI4ASOURgVcDJJQFmmAU5ZTileX1wLKRQWCDPxQFibg
- 0OSQ1yyWbwreb/9SPlCyESoMAyxKlWJTuTWZXaB8BOASYZBUL5Lr99pl9Dbpmvf/1Jv+//lNOQOBdglw
- 6jLISCcIhdpv1TlpOFn2BlA5B0QXEuBWZNULOmn7P+6i+//YKy7/Ux8CDbnn/inhqtfL2Kvun2Pvu/63
- 36Tyi0WcwRyqBRMoxkk2Rj2w/5/62Ot/5c/Y/9V/Ev4XvA/7H3Hd6b8B0GZmOWYnqFKcgM1lvcHZqt9x
- /807NDYYVassVM+Rms1ny5kOlIOnDbyA15DDMvK6/VegL+WgQqQDXkM2XyAFyokEAAMDANzCm1l1mttC
+ 0OSQ1yyWbwreb/9SPlCyESoMAyxKlWJTuTWZXaB8BOASYZBUL5Lr99pl+Dbpmvf/1Jv+//lNOQOBdglw
+ 6jLISCcIhdpv1TlpOFn2BlA5B0QXEuBWZNULOmn7P+6i+//YKy7/Ux8CDbnn8inhqtfL2Kvun2Pvu/63
+ 3yT3i0WcwRyqBRMoxkk2Rj2w/5/62Ot/5c/Y/9V/Ev4XvA/7H3Hd6b8B0GZmOWYnqFKcgM1lvcHZqt9x
+ /807NDYYVassVM+Rms1ny5kOlIOnDbyA15DDMvK6/VegL+WgQqQDXkM2XyAFyokEAAMDAMMSm0rf6i8H
AAAAAElFTkSuQmCC
</value>
</data>
@@ -243,22 +252,22 @@
<data name="bMysqlSettings.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAORSURBVFhH7ZXvT5JRFMfd2nrde965yjeVzVqm6DCbqaMh
- oY8EUxS0nKWZ5QNoTco0JTXJMpQURUXQSlTQKfmr9WOtWrmsrcyytEwy6y/A03PvHghoaxUPW2t+tzM2
- ds/9nnPuvZ8naE3/lQ6fvwsoDlXcAfqvwEpIDgjTT42AiLSR3EIrS1Y2CZ1jX0By2g6xOd2sxCyDMPVk
- PyRIDVF0CrPKOjcJ5olvIFWN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uAZpJZPgGly9RKcyI3POS+SL
+ JqzH5tbgvUHmnG9Rb5mwvoEavVV4b5CB8+hsEeezZY/BmPUZ5dOW8/5XoiYQf45bDh786ji3MLmdl+Du
+ a2PWu/Fki47citMW8f5P5eCVC/XUpTvpkcVst78rRj82R/o3ZGPzHZtaA4+6pwZ8AAAAAElFTkSuQmCC
</value>
</data>
<data name="bForceSync.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -275,57 +284,57 @@
<data name="bTruncate.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAuMSURBVGhD7ZkJVJNXFsdTkDWsAZKQsISEhH1HVkFEEbQK
- VFER2UREUWsVXOqudUFsrdaltbad9rQzHWuXUasz45wurojQsFNQAilL2EJAFPU47fQ/N/B1ptOeHpSB
- as/p75x3Qr7v/17ue+/e++73wfqdJ42B0uKn78mL37h95uP3bp879W7f6Y93qE+eDGBuPxaasrJc2nJz
- ljbPe+Y9dU76pdLIsAuXw4M2MLeH+L6szOa+vOQv/Z/8CV271qB9Yy66d+aj93ABbr/zGuoOvHguUCRy
- YeRjTs2cOSbNy3NzVOvzrt/auxldm1agPmkazni4YIk5+6yDrm4SyYwHxd+3KkMeyIva1a/sQnPuPLQs
- T4YqfyE6NuWia8dqdO9eg3uvvID+/Tv/uX3G9E2DncYIRUwMtyF5bkHX889r7r51EAOvFaBp8XycdZMh
- zdj4I1MWawbJ+ENqInHq1ID71y9937ntWTJ+DtpWZ0K1Lhud255D994NUO/fhp4D29Gzfyv6X9oMHN6J
- 60sXyYOEQh9miFGjMW3BptZ16/rvvH0EDz54HZ0FG3BtcgS2WVp+ZcfSWUgSuyHljzi6dfNOvP86VLTq
- HWuzoFq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zTedtLW
+ tusMn/tgqzX3uqWOzly6TCXKbwh9FsuV8rC2ZNC6zZicvL/z24fF+jeb+MxZY3MXyQAAAABJRU5ErkJg
+ gg==
</value>
</data>
<metadata name="toolStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
@@ -351,35 +360,35 @@
<data name="bClearHands.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
- YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAaTSURBVFhHtVcJUFNXFMXuy7SdrtNOO12m03ZqO63KKCKE
- jwuSSYiAbALZwIALiARQ3CMCWjdAkEXWuEQQwUhZBIIGZEuQZVRUlCL7LoGACohw+97n60DZQtUzc2Yy
- P+/fc+999777vtbLRmt8/N6mM2daqySSR/WJSdu1TZzf0xKJXqP+frVokSRIauPi+h5kZUFHSgogR6Ba
- LO66HhHBIwjeO6/UkWaJJK41Kupxr7IY+kpLoPcaphI6MjJAER42fCf4WEuuj585nb7p7ZfuSKNYHN2M
- xNWKIlK0twRRqUAshl4FZhE0JydBuZ/vUOEu7/vxTk4rSUe0tOaMWngBNMTGnmjC4sWFE0TxM3URZgGo
- C/NJ1pwSg8zefkDCd9xoZMR+nzLz/1AXGR3WGCjux4anE1UXXAV1/lXoyc+Dnqt50I0Yb2HRtpTh+B1l
- avaojYwMqg8M7CeNzyiaO8o8OWIudJSXPxBbrG4zWMWZT5mbHe6HhQXUIfHuvLwJoqTgM1FSEDH3Cslu
- xC6lsi/Vw+NRBEGoaUzuIsqk5vgnNOQIcmAAG9NIVH4Zuq9g5kB3RUV/tkjUK3EWwKGFC/v0GWwdyqxm
- qA4KOlQTEjyAjWosehlTBrVlpUOy8ABVgutGCDQ17T+goyM1MOEvpEzPjHtBQX7V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zvhBH3Uw0N51cpqdlR5e1x/W7QsUnhqEhow4w+Ce0xUdB5NlYxUFfXimf5NHF0NrTIZCN5+/ZA5lYv
+ 0oF0VHTxBDHuw+K5EUzuslUMzudzVvxUlAu2bJBamY83h4VCGxJtj42G9rgY6MCMj4XOUyIYrK26jbeE
+ PJBQkbbKZQ8L/HwhCx022IEMlPoAU+ZE6HrbQzpM7grChPs1eRlV5eqFF2YLBJwKLnesIfAoKdohioNO
+ zFPx0ImuUl2IvVlZd7rl8qaGvNwWic9+yN6+FbKo6MWW6yDOyipDx5hN6DJ431FXLhXvfag18Auhjq56
+ Uj5fedVHOE246/Spf9mJKNm9E3KQeDYVfYKtNcQxGPU66JhdweT8tHq183sLv/2iF5ZZWLzJt+Z/L3Vx
+ aigVuE86MEUcswnVxgVUdGT0yIFEDgsiDNf06zHYhqjgftM3ZX84Z7upgEX4yowrV7JpU26MPWeiXRQ7
+ zYFrwYGAqx47kOxoD8JVxCNTU56JDoOroW3G+uSp7aYqcNvggZHt6hoYZmM10Yy644kD5f6+ZPpTNziB
+ UF398QZzOxt8v6MZ2n02b7stBDiNOgzb99PdBY7xttZj9bg40Zbk79oBKQ48EOrpTvhb2Ho9GTDUx8Zz
+ BqoLNLvfCeRvpOU585uSzU0hyczs/mkL07oDa80ENCPectxuuHbQ6mf/0pkVVHHiQ2UFw/5XfMDgGy3+
+ vcKY/SXZbguu+IVjET7R8DTDQwUT/362j001tX8A8JlgGBAwwjAAAAAASUVORK5CYII=
</value>
</data>
<data name="label11.Text" xml:space="preserve">
@@ -424,6 +433,9 @@ to także należy ręcznie zrobić Upload.</value>
ZYMGMDAAAE5bDhZeNnGYAAAAAElFTkSuQmCC
</value>
</data>
+ <metadata name="namesTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>343, 21</value>
+ </metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>43</value>
</metadata>
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs
index cbe9bf9..87fa759 100644
--- a/Aktywator/Tournament.cs
+++ b/Aktywator/Tournament.cs
@@ -1,6 +1,8 @@
using System;
using System.Collections.Generic;
using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
namespace Aktywator
{
@@ -38,6 +40,77 @@ namespace Aktywator
return new Dictionary<int, List<string>>();
}
+ virtual public void displayNameList(DataGridView grid)
+ {
+ Dictionary<int, List<string>> names = this.getNameList();
+ foreach (KeyValuePair<int, List<string>> item in names) {
+ if (!this.updateNameListRow(grid, item.Key, item.Value))
+ {
+ this.addNameListRow(grid, item.Key, item.Value);
+ }
+ }
+ List<DataGridViewRow> toDelete = new List<DataGridViewRow>();
+ foreach (DataGridViewRow row in grid.Rows)
+ {
+ if (!names.ContainsKey(Int32.Parse(row.Cells[0].Value.ToString())))
+ {
+ toDelete.Add(row);
+ }
+ }
+ foreach (DataGridViewRow r in toDelete)
+ {
+ grid.Rows.Remove(r);
+ }
+ }
+
+ virtual internal bool updateNameListRow(DataGridView grid, int pairNumber, List<string> names)
+ {
+ foreach (DataGridViewRow row in grid.Rows)
+ {
+ if (Int32.Parse(row.Cells[0].Value.ToString()) == pairNumber)
+ {
+ for (int i = 1; i < 3; i++)
+ {
+ if (!(bool)row.Cells[i].Tag)
+ {
+ row.Cells[i].Value = names[i - 1];
+ row.Cells[i].Tag = false;
+ row.Cells[i].Style.BackColor = Color.White;
+ }
+ }
+ return true;
+ }
+ }
+ return false;
+ }
+
+ virtual internal void addNameListRow(DataGridView grid, int pairNumber, List<string> names)
+ {
+ DataGridViewRow row = new DataGridViewRow();
+ row.Cells.Add(new DataGridViewTextBoxCell());
+ row.Cells[0].Value = pairNumber.ToString();
+ foreach (string name in names)
+ {
+ DataGridViewTextBoxCell cell = new DataGridViewTextBoxCell();
+ cell.Value = name;
+ cell.Tag = false;
+ row.Cells.Add(cell);
+ }
+ grid.Rows.Add(row);
+ }
+
+ virtual internal void clearCellLocks(DataGridView grid)
+ {
+ foreach (DataGridViewRow row in grid.Rows)
+ {
+ for (int i = 1; i < 3; i++)
+ {
+ row.Cells[i].Tag = false;
+ row.Cells[i].Style.BackColor = Color.White;
+ }
+ }
+ }
+
virtual internal string shortenNameToBWS(string name)
{
if ("pauza".Equals(name.Trim()))
@@ -54,5 +127,21 @@ namespace Aktywator
return String.Join(" ", nameParts);
}
}
+
+ virtual public Dictionary<int, List<string>> getBWSNames(DataGridView grid)
+ {
+ Dictionary<int, List<string>> dict = new Dictionary<int, List<string>>();
+ foreach (DataGridViewRow row in grid.Rows)
+ {
+ List<string> names = new List<string>();
+ for (int i = 1; i < 3; i++)
+ {
+ names.Add(this.shortenNameToBWS(row.Cells[i].Value.ToString()));
+ }
+ dict.Add(Int32.Parse(row.Cells[0].Value.ToString()), names);
+ }
+ return dict;
+ }
+
}
}