summaryrefslogtreecommitdiff
path: root/Aktywator/MainForm.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-23 18:01:44 +0200
committeremkael <emkael@tlen.pl>2017-08-23 18:01:44 +0200
commit5ac5e9d211eda64cf35a2d727e3c9cfc1493c99a (patch)
tree83855da191e1de4aeea0acd93e61ca1228766632 /Aktywator/MainForm.cs
parentddc074e5d1f21ed79efc81d5406eeeb6598445be (diff)
Displaying BWS-formatted names in tooltips of names editor
Diffstat (limited to 'Aktywator/MainForm.cs')
-rw-r--r--Aktywator/MainForm.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Aktywator/MainForm.cs b/Aktywator/MainForm.cs
index 978b4bc..712a104 100644
--- a/Aktywator/MainForm.cs
+++ b/Aktywator/MainForm.cs
@@ -529,5 +529,14 @@ namespace Aktywator
namesTimer.Interval = Convert.ToInt32(numNamesRefreshInterval.Value) * 1000;
}
+ private void namesGridView_CellMouseEnter(object sender, DataGridViewCellEventArgs e)
+ {
+ if (e.RowIndex > -1 && e.ColumnIndex > 0)
+ {
+ DataGridViewCell cell = namesGridView.Rows[e.RowIndex].Cells[e.ColumnIndex];
+ cell.ToolTipText = tournament.shortenNameToBWS(cell.Value.ToString());
+ }
+ }
+
}
}