diff options
author | emkael <emkael@tlen.pl> | 2017-08-23 18:01:44 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-23 18:01:44 +0200 |
commit | 5ac5e9d211eda64cf35a2d727e3c9cfc1493c99a (patch) | |
tree | 83855da191e1de4aeea0acd93e61ca1228766632 /Aktywator/MainForm.cs | |
parent | ddc074e5d1f21ed79efc81d5406eeeb6598445be (diff) |
Displaying BWS-formatted names in tooltips of names editor
Diffstat (limited to 'Aktywator/MainForm.cs')
-rw-r--r-- | Aktywator/MainForm.cs | 9 |
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()); + } + } + } } |