FrmScreenAutomation: Only top level while running.

This commit is contained in:
2019-11-05 17:32:14 +01:00
parent 2f8f4492ea
commit 4da5466de9
2 changed files with 12 additions and 3 deletions

View File

@@ -59,7 +59,6 @@ namespace VAR.ScreenAutomation
timTicker.Enabled = true;
timTicker.Start();
WindowHandling.WindowSetTopLevel(this);
}
private void FrmScreenAutomation_FormClosing(object sender, FormClosingEventArgs e)
@@ -118,6 +117,7 @@ namespace VAR.ScreenAutomation
{
if (_running) { return; }
_running = true;
WindowHandling.WindowSetTopLevel(this);
btnStartEnd.Text = "End";
_automationBot = AutomationBotFactory.CreateFromName((string)ddlAutomationBot.SelectedItem);
_automationBot?.Init(ctrOutput);
@@ -131,6 +131,7 @@ namespace VAR.ScreenAutomation
if (_running == false) { return; }
_running = false;
btnStartEnd.Text = "Start";
WindowHandling.WindowSetTopLevel(this, false);
}
private void DdlAutomationBot_SelectedIndexChanged(object sender, EventArgs e)