mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-18 19:33:29 +12:00
[BUG] Fix rare ArgumentOutOfRangeException (#132)
This commit is contained in:
parent
274682d26e
commit
6eea1d9b4c
|
@ -52,12 +52,15 @@ namespace SystemTrayMenu.Handler
|
|||
if (MouseActive)
|
||||
{
|
||||
DataGridView dgv = (DataGridView)sender;
|
||||
MouseEnterOk(dgv, e.RowIndex);
|
||||
timerStartLoad.Stop();
|
||||
StopLoadMenu?.Invoke();
|
||||
checkForMouseActive = true;
|
||||
SetData(dgv, e.RowIndex);
|
||||
timerStartLoad.Start();
|
||||
if (dgv.Rows.Count > e.RowIndex)
|
||||
{
|
||||
MouseEnterOk(dgv, e.RowIndex);
|
||||
timerStartLoad.Stop();
|
||||
StopLoadMenu?.Invoke();
|
||||
checkForMouseActive = true;
|
||||
SetData(dgv, e.RowIndex);
|
||||
timerStartLoad.Start();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -68,12 +71,15 @@ namespace SystemTrayMenu.Handler
|
|||
|
||||
internal void RowSelected(DataGridView dgv, int rowIndex)
|
||||
{
|
||||
timerStartLoad.Stop();
|
||||
StopLoadMenu?.Invoke();
|
||||
SetData(dgv, rowIndex);
|
||||
MouseActive = false;
|
||||
checkForMouseActive = false;
|
||||
timerStartLoad.Start();
|
||||
if (dgv.Rows.Count > rowIndex)
|
||||
{
|
||||
timerStartLoad.Stop();
|
||||
StopLoadMenu?.Invoke();
|
||||
SetData(dgv, rowIndex);
|
||||
MouseActive = false;
|
||||
checkForMouseActive = false;
|
||||
timerStartLoad.Start();
|
||||
}
|
||||
}
|
||||
|
||||
internal void MouseLeave(object sender, DataGridViewCellEventArgs e)
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<Identity
|
||||
Name="49543SystemTrayMenu.SystemTrayMenu"
|
||||
Publisher="CN=5884501C-92ED-45DE-9508-9D987C314243"
|
||||
Version="1.0.14.0" />
|
||||
Version="1.0.15.0" />
|
||||
|
||||
<Properties>
|
||||
<DisplayName>SystemTrayMenu</DisplayName>
|
||||
|
|
|
@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.15.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.15.0")]
|
||||
[assembly: AssemblyVersion("1.0.15.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.15.1")]
|
||||
|
|
Loading…
Reference in a new issue