mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Handheld form behavior
This commit is contained in:
@@ -1024,6 +1024,7 @@ namespace GHelper
|
|||||||
if (extraForm != null && extraForm.Text != "") extraForm.Close();
|
if (extraForm != null && extraForm.Text != "") extraForm.Close();
|
||||||
if (updatesForm != null && updatesForm.Text != "") updatesForm.Close();
|
if (updatesForm != null && updatesForm.Text != "") updatesForm.Close();
|
||||||
if (matrixForm != null && matrixForm.Text != "") matrixForm.Close();
|
if (matrixForm != null && matrixForm.Text != "") matrixForm.Close();
|
||||||
|
if (handheldForm != null && handheldForm.Text != "") handheldForm.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1044,6 +1045,7 @@ namespace GHelper
|
|||||||
(extraForm != null && extraForm.ContainsFocus) ||
|
(extraForm != null && extraForm.ContainsFocus) ||
|
||||||
(updatesForm != null && updatesForm.ContainsFocus) ||
|
(updatesForm != null && updatesForm.ContainsFocus) ||
|
||||||
(matrixForm != null && matrixForm.ContainsFocus) ||
|
(matrixForm != null && matrixForm.ContainsFocus) ||
|
||||||
|
(handheldForm != null && handheldForm.ContainsFocus) ||
|
||||||
this.ContainsFocus ||
|
this.ContainsFocus ||
|
||||||
(lostFocusCheck && Math.Abs(DateTimeOffset.Now.ToUnixTimeMilliseconds() - lastLostFocus) < 300);
|
(lostFocusCheck && Math.Abs(DateTimeOffset.Now.ToUnixTimeMilliseconds() - lastLostFocus) < 300);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user