From 5ac5e9d211eda64cf35a2d727e3c9cfc1493c99a Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 23 Aug 2017 18:01:44 +0200 Subject: Displaying BWS-formatted names in tooltips of names editor --- Aktywator/MainForm.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Aktywator/MainForm.cs') 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()); + } + } + } } -- cgit v1.2.3