private void closeScanner() { if (_launchAppScanner != null) { Windows.CloseForm(_launchAppScanner); _launchAppScanner = null; } }