combine if statements
This commit is contained in:
parent
bb0f679c6b
commit
878ac29fe0
2 changed files with 4 additions and 10 deletions
|
@ -89,13 +89,10 @@ namespace SafeExamBrowser.UserInterface.Desktop.Windows
|
|||
{
|
||||
Activate();
|
||||
|
||||
if (forward)
|
||||
{
|
||||
if (ApplicationStackPanel.Children.Count > 0)
|
||||
if (forward && ApplicationStackPanel.Children.Count > 0)
|
||||
{
|
||||
SetFocusWithin(ApplicationStackPanel.Children[0]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
QuitButton.Focus();
|
||||
|
|
|
@ -88,13 +88,10 @@ namespace SafeExamBrowser.UserInterface.Mobile.Windows
|
|||
{
|
||||
Activate();
|
||||
|
||||
if (fromTop)
|
||||
{
|
||||
if (ApplicationStackPanel.Children.Count > 0)
|
||||
if (fromTop && ApplicationStackPanel.Children.Count > 0)
|
||||
{
|
||||
ApplicationStackPanel.Children[0].Focus();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
QuitButton.Focus();
|
||||
|
|
Loading…
Add table
Reference in a new issue